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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/media/encrypted-media/encrypted-media-encrypted-event-same-origin.html

Issue 2652373002: EME: Fail requestMediaKeySystemAccess if no capabilities specified (Closed)
Patch Set: more changes Created 3 years, 10 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: third_party/WebKit/LayoutTests/http/tests/media/encrypted-media/encrypted-media-encrypted-event-same-origin.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/media/encrypted-media/encrypted-media-encrypted-event-same-origin.html b/third_party/WebKit/LayoutTests/http/tests/media/encrypted-media/encrypted-media-encrypted-event-same-origin.html
index 775221275d9f6dcae89ba8673de7471c9117addd..59572b9f6ce5e0ad67ec680a69d9b75a4c7e0c69 100644
--- a/third_party/WebKit/LayoutTests/http/tests/media/encrypted-media/encrypted-media-encrypted-event-same-origin.html
+++ b/third_party/WebKit/LayoutTests/http/tests/media/encrypted-media/encrypted-media-encrypted-event-same-origin.html
@@ -31,7 +31,10 @@
test.done();
}
- navigator.requestMediaKeySystemAccess('org.w3.clearkey', [{}]).then(function(access) {
+ navigator.requestMediaKeySystemAccess(
+ 'org.w3.clearkey',
+ [{audioCapabilities: [{contentType: 'audio/webm; codecs=vorbis'}]}])
+ .then(function(access) {
return access.createMediaKeys();
}).then(function(mediaKeys) {
video.addEventListener('encrypted', test.step_func(onEncrypted), true);

Powered by Google App Engine
This is Rietveld 408576698