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

Unified Diff: LayoutTests/media/encrypted-media/encrypted-media-unprefixed-after-prefixed.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-unprefixed-after-prefixed.html
diff --git a/LayoutTests/media/encrypted-media/encrypted-media-unprefixed-after-prefixed.html b/LayoutTests/media/encrypted-media/encrypted-media-unprefixed-after-prefixed.html
index a0ca5266f0123b0bd15ea373a2eb651243f8b674..742ad3e26cfcf87e9c7f4cbe563c0b0fdfeb323c 100644
--- a/LayoutTests/media/encrypted-media/encrypted-media-unprefixed-after-prefixed.html
+++ b/LayoutTests/media/encrypted-media/encrypted-media-unprefixed-after-prefixed.html
@@ -19,9 +19,12 @@
function loadStarted()
{
video.webkitGenerateKeyRequest('webkit-org.w3.clearkey');
- MediaKeys.create('org.w3.clearkey').then(function(mediaKeys) {
+ navigator.requestMediaKeySystemAccess('org.w3.clearkey').then(function(access) {
+ assert_equals(access.keySystem, 'org.w3.clearkey');
+ return access.createMediaKeys();
+ }).then(function(mediaKeys) {
assert_not_equals(mediaKeys, null);
- assert_equals(mediaKeys.keySystem, 'org.w3.clearkey');
+ assert_equals(typeof mediaKeys.createSession, 'function');
video.setMediaKeys(mediaKeys).then(function(result) {
assert_unreached('setMediaKeys should have failed.');
}, function(error) {

Powered by Google App Engine
This is Rietveld 408576698