Index: third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-waiting-for-a-key.html |
diff --git a/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-waiting-for-a-key.html b/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-waiting-for-a-key.html |
index 712557bd7248fa66c0dbc209d00c3f481d1a60ce..2cac0d2b0892cd06cf72129d15ba7bd6b1a6b301 100644 |
--- a/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-waiting-for-a-key.html |
+++ b/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-waiting-for-a-key.html |
@@ -20,6 +20,7 @@ |
promise_test(function(test) |
{ |
var video = document.getElementById('testVideo'); |
+ var content = '../content/test-encrypted.webm'; |
var initData; |
var initDataType; |
var mediaKeySession; |
@@ -43,14 +44,14 @@ |
var rawKey = new Uint8Array([0xeb, 0xdd, 0x62, 0xf1, 0x68, 0x14, 0xd2, 0x7b, |
0x68, 0xef, 0x12, 0x2a, 0xfc, 0xe4, 0xae, 0x3c]); |
- return navigator.requestMediaKeySystemAccess('org.w3.clearkey', [{}]).then(function(access) { |
+ return navigator.requestMediaKeySystemAccess('org.w3.clearkey', getConfigurationForFile(content)).then(function(access) { |
debugMessage = 'createMediaKeys()'; |
return access.createMediaKeys(); |
}).then(function(mediaKeys) { |
debugMessage = 'setMediaKeys()'; |
return video.setMediaKeys(mediaKeys); |
}).then(function() { |
- video.src = '../content/test-encrypted.webm'; |
+ video.src = content; |
video.play(); |
debugMessage = 'wait_for_encrypted_event()'; |
return wait_for_encrypted_event(video); |