Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Unified Diff: LayoutTests/media/encrypted-media/encrypted-media-playback-multiple-sessions.html

Issue 655603003: Reland: Remove "needkey" event and add its replacement, "encrypted". (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/media/encrypted-media/encrypted-media-playback-multiple-sessions.html
diff --git a/LayoutTests/media/encrypted-media/encrypted-media-playback-multiple-sessions.html b/LayoutTests/media/encrypted-media/encrypted-media-playback-multiple-sessions.html
index f6d89cdc4713edb6c9ed461d7b2499e5ef7dfefd..7c3335f9c30307fabf89166d5e65b4d62b20cfb0 100644
--- a/LayoutTests/media/encrypted-media/encrypted-media-playback-multiple-sessions.html
+++ b/LayoutTests/media/encrypted-media/encrypted-media-playback-multiple-sessions.html
@@ -27,13 +27,13 @@
var videoKey = new Uint8Array([0x7A, 0x7A, 0x62, 0xF1, 0x68, 0x14, 0xD2, 0x7B,
0x68, 0xEF, 0x12, 0x2A, 0xFC, 0xE4, 0xAE, 0x0A]);
- function onNeedKey(event)
+ function onEncrypted(event)
{
- var keyId = String.fromCharCode.apply(null, event.initData);
+ var keyId = String.fromCharCode.apply(null, new Uint8Array(event.initData));
var mediaKeySession = video.mediaKeys.createSession();
waitForEventAndRunStep('message', mediaKeySession, onMessage, test);
- mediaKeySession.generateRequest(event.contentType, event.initData).then(function() {
+ mediaKeySession.generateRequest(event.initDataType, event.initData).then(function() {
if (keyId == videoKeyId) {
assert_equals(videoMediaKeySession, null);
videoMediaKeySession = mediaKeySession;
@@ -91,7 +91,7 @@
}
MediaKeys.create('org.w3.clearkey').then(function(mediaKeys) {
- waitForEventAndRunStep('needkey', video, onNeedKey, test);
+ waitForEventAndRunStep('encrypted', video, onEncrypted, test);
waitForEventAndRunStep('playing', video, onPlaying, test);
video.src = '../content/test-encrypted-different-av-keys.webm';
return video.setMediaKeys(mediaKeys);

Powered by Google App Engine
This is Rietveld 408576698