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

Unified Diff: LayoutTests/media/encrypted-media/encrypted-media-playback-multiple-sessions.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-playback-multiple-sessions.html
diff --git a/LayoutTests/media/encrypted-media/encrypted-media-playback-multiple-sessions.html b/LayoutTests/media/encrypted-media/encrypted-media-playback-multiple-sessions.html
index 4737ffe6cdfeadda6085e64f36fe9ceefffb9185..f6d89cdc4713edb6c9ed461d7b2499e5ef7dfefd 100644
--- a/LayoutTests/media/encrypted-media/encrypted-media-playback-multiple-sessions.html
+++ b/LayoutTests/media/encrypted-media/encrypted-media-playback-multiple-sessions.html
@@ -91,12 +91,11 @@
}
MediaKeys.create('org.w3.clearkey').then(function(mediaKeys) {
-
waitForEventAndRunStep('needkey', video, onNeedKey, test);
waitForEventAndRunStep('playing', video, onPlaying, test);
-
- video.setMediaKeys(mediaKeys);
video.src = '../content/test-encrypted-different-av-keys.webm';
+ return video.setMediaKeys(mediaKeys);
+ }).then(function(result) {
video.play();
}).catch(function(error) {
forceTestFailureFromPromise(test, error);

Powered by Google App Engine
This is Rietveld 408576698