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

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

Issue 665213002: Implement navigator.requestMediaKeySystemAccess() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: update 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-mediakeys-with-session.html
diff --git a/LayoutTests/media/encrypted-media/encrypted-media-lifetime-mediakeys-with-session.html b/LayoutTests/media/encrypted-media/encrypted-media-lifetime-mediakeys-with-session.html
index ca033b6518dd10eb3e2479c42a59a82f081aa691..2a2ae75cb08ab353ec0725758488eb57d794abb9 100644
--- a/LayoutTests/media/encrypted-media/encrypted-media-lifetime-mediakeys-with-session.html
+++ b/LayoutTests/media/encrypted-media/encrypted-media-lifetime-mediakeys-with-session.html
@@ -35,7 +35,10 @@
}
// Create a MediaKeys object with a session.
- MediaKeys.create('org.w3.clearkey').then(function(result) {
+ navigator.requestMediaKeySystemAccess('org.w3.clearkey').then(function(access) {
+ assert_equals(access.keySystem, 'org.w3.clearkey');
+ return access.createMediaKeys();
+ }).then(function(result) {
mediaKeys = result;
// Verify MediaKeys are not an ActiveDOMObject.
@@ -52,7 +55,6 @@
// session since we still have a reference to it.
return createGCPromise();
}).then(function(result) {
- assert_equals(mediaKeys.keySystem, 'org.w3.clearkey');
// Ensure that MediaKeySession (but not PromiseResolver) is
ddorwin 2014/10/23 23:32:01 Was the removed line necessary to test validity? I
jrummell 2014/10/24 22:43:22 Done.
// still around.
assert_equals(numActiveDOMObjectsCreated(), 1, 'After gc()');

Powered by Google App Engine
This is Rietveld 408576698