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-prefixed-after-unprefixed.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-prefixed-after-unprefixed.html
diff --git a/LayoutTests/media/encrypted-media/encrypted-media-prefixed-after-unprefixed.html b/LayoutTests/media/encrypted-media/encrypted-media-prefixed-after-unprefixed.html
index 9cfe7b6a5f0975f90177f35eb668d3ddb1c02fb5..ebcbf8e5bca403c9fcaad95c241c8b7fd40fc9c1 100644
--- a/LayoutTests/media/encrypted-media/encrypted-media-prefixed-after-unprefixed.html
+++ b/LayoutTests/media/encrypted-media/encrypted-media-prefixed-after-unprefixed.html
@@ -18,9 +18,11 @@
function loadStarted()
{
- 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');
return video.setMediaKeys(mediaKeys);
}).then(function(result) {
assert_throws('InvalidStateError',

Powered by Google App Engine
This is Rietveld 408576698