| Index: media/test/data/eme_player.html
|
| diff --git a/media/test/data/eme_player.html b/media/test/data/eme_player.html
|
| index 2d44874dc7203d57160aa57fc49bc621077ba556..3e8453867435c709453a9e9777e896818cbdf6b0 100644
|
| --- a/media/test/data/eme_player.html
|
| +++ b/media/test/data/eme_player.html
|
| @@ -74,16 +74,14 @@
|
| Utils.timeLog('timeupdate @ ' + video.currentTime);
|
| if (video.currentTime < 1)
|
| return;
|
| - // For loadSession() tests, addKey() will not be called after
|
| - // loadSession() (the key is loaded internally). Do not check keyadded
|
| - // and renewal message for these tests.
|
| - if (!testConfig.sessionToLoad) {
|
| - // keyadded may be fired around the start of playback; check for it
|
| - // after a delay to avoid timing issues.
|
| - if (testConfig.keySystem == EXTERNAL_CLEARKEY &&
|
| - !video.receivedRenewalMessage)
|
| - Utils.failTest('license-renewal message not received.');
|
| +
|
| + // Renewal message may be fired around the start of playback; check for it
|
| + // after a delay to avoid timing issues.
|
| + if (testConfig.keySystem == EXTERNAL_CLEARKEY_RENEWAL &&
|
| + !video.receivedRenewalMessage) {
|
| + Utils.failTest('license-renewal message not received.');
|
| }
|
| +
|
| Utils.timeLog('waiting for video to end.');
|
| video.removeEventListener('ended', Utils.failTest);
|
| Utils.installTitleEventHandler(video, 'ended');
|
|
|