| Index: content/test/data/media/encrypted_media_player.html
|
| diff --git a/content/test/data/media/encrypted_media_player.html b/content/test/data/media/encrypted_media_player.html
|
| index 777a7e44c5b54885f9b578576ba9a8e44ea16f21..8c7d0cd24b729f4bfc5bf04c97f00faa88c4f15b 100644
|
| --- a/content/test/data/media/encrypted_media_player.html
|
| +++ b/content/test/data/media/encrypted_media_player.html
|
| @@ -11,10 +11,12 @@
|
|
|
| function onTimeUpdate() {
|
| // webkitkeyadded should have been fired before playback.
|
| - if (!video.hasKeyAdded)
|
| - failTest('Key not added.');
|
| + if (!video.receivedKeyAdded)
|
| + failTest('Key added event not received.');
|
| if (video.currentTime < 1)
|
| return;
|
| + if (video.isHeartbeatExpected && !video.receivedHeartbeat)
|
| + failTest('Heartbeat keymessage event not received.');
|
| video.removeEventListener('ended', failTest);
|
| installTitleEventHandler(video, 'ended');
|
| video.removeEventListener('timeupdate', onTimeUpdate);
|
|
|