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

Unified Diff: LayoutTests/media/encrypted-media/encrypted-media-unprefixed-after-prefixed.html

Issue 423633002: Make HTMLMediaElement.setMediaKeys() asynchronous. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase + add comment Created 6 years, 3 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 6ae791155c38e26370251baf827560393a525236..2a0d49faaeb01ab84b98aee09c9d2f970e50df0e 100644
--- a/LayoutTests/media/encrypted-media/encrypted-media-unprefixed-after-prefixed.html
+++ b/LayoutTests/media/encrypted-media/encrypted-media-unprefixed-after-prefixed.html
@@ -22,9 +22,13 @@
MediaKeys.create('org.w3.clearkey').then(function(mediaKeys) {
assert_not_equals(mediaKeys, null);
assert_equals(mediaKeys.keySystem, 'org.w3.clearkey');
- assert_throws('InvalidStateError',
- function () { video.setMediaKeys(mediaKeys); });
- test.done();
+ video.setMediaKeys(mediaKeys).then(function(result) {
+ assert_unreached('setMediaKeys should have failed.');
+ }, function(error) {
+ assert_equals(error.name, 'InvalidStateError');
+ assert_not_equals(error.message, '');
+ test.done();
+ });
}).catch(function(error) {
forceTestFailureFromPromise(test, error);
});

Powered by Google App Engine
This is Rietveld 408576698