Index: third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-lifetime-reload.html |
diff --git a/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-lifetime-reload.html b/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-lifetime-reload.html |
index c7b2a3dbf7b213454aaba3e20161633d46cb0069..51c9479baa2ee18cfcdc34393e1d9c3ffcbaa24d 100644 |
--- a/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-lifetime-reload.html |
+++ b/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-lifetime-reload.html |
@@ -13,6 +13,7 @@ |
async_test(function(test) |
{ |
var video = document.getElementById('testVideo'); |
+ var content = '../content/test-encrypted.webm'; |
var mediaKeySession = null; |
var hasSessionUpdateSucceeded = false; |
var encryptedEventCount = 0; |
@@ -80,12 +81,12 @@ |
location.reload(); |
} |
- navigator.requestMediaKeySystemAccess('org.w3.clearkey', [{}]).then(function(access) { |
+ navigator.requestMediaKeySystemAccess('org.w3.clearkey', getConfigurationForFile(content)).then(function(access) { |
return access.createMediaKeys(); |
}).then(function(mediaKeys) { |
waitForEventAndRunStep('encrypted', video, onEncrypted, test); |
waitForEventAndRunStep('playing', video, onPlaying, test); |
- video.src = '../content/test-encrypted.webm'; |
+ video.src = content; |
return video.setMediaKeys(mediaKeys); |
}).then(function(result) { |
video.play(); |