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

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: updates 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..fc340d7fa905f9b47389801a7a4a96e634c5e022 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,11 @@
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');
ddorwin 2014/10/24 23:08:14 ditto
+ return access.createMediaKeys();
+ }).then(function(mediaKeys) {
assert_not_equals(mediaKeys, null);
- assert_equals(mediaKeys.keySystem, 'org.w3.clearkey');
video.setMediaKeys(mediaKeys).then(function(result) {
assert_unreached('setMediaKeys should have failed.');
}, function(error) {

Powered by Google App Engine
This is Rietveld 408576698