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

Unified Diff: LayoutTests/media/encrypted-media/encrypted-media-lifetime-multiple-mediakeys.html

Issue 665213002: Implement navigator.requestMediaKeySystemAccess() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add comment 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-lifetime-multiple-mediakeys.html
diff --git a/LayoutTests/media/encrypted-media/encrypted-media-lifetime-multiple-mediakeys.html b/LayoutTests/media/encrypted-media/encrypted-media-lifetime-multiple-mediakeys.html
index dee217af929874775cf0fd74704ab2d6729d70fc..57a58f8737e70e80ccff3304f0b3b903c8ae764c 100644
--- a/LayoutTests/media/encrypted-media/encrypted-media-lifetime-multiple-mediakeys.html
+++ b/LayoutTests/media/encrypted-media/encrypted-media-lifetime-multiple-mediakeys.html
@@ -44,7 +44,9 @@
// MediaKeySession object.
function createMediaKeyWithMediaKeySession()
{
- return MediaKeys.create('org.w3.clearkey').then(function(result) {
+ return navigator.requestMediaKeySystemAccess('org.w3.clearkey').then(function(access) {
+ return access.createMediaKeys();
+ }).then(function(result) {
mediaKeys = result;
var mediaKeySession = mediaKeys.createSession();
return mediaKeySession.generateRequest(initDataType, initData).then(function() {
@@ -105,7 +107,7 @@
}).then(function(result) {
// Should be 1 MediaKeySession, the session for |mediaKeys|.
assert_equals(numActiveDOMObjectsCreated(), 1);
- assert_equals(mediaKeys.keySystem, 'org.w3.clearkey');
+ assert_equals(typeof mediaKeys.createSession, 'function');
// Release the last MediaKeys object created.
mediaKeys = null;

Powered by Google App Engine
This is Rietveld 408576698