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

Unified Diff: LayoutTests/media/encrypted-media/encrypted-media-lifetime-reload.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
« no previous file with comments | « no previous file | LayoutTests/media/encrypted-media/encrypted-media-playback-multiple-sessions.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/media/encrypted-media/encrypted-media-lifetime-reload.html
diff --git a/LayoutTests/media/encrypted-media/encrypted-media-lifetime-reload.html b/LayoutTests/media/encrypted-media/encrypted-media-lifetime-reload.html
index 755ad56e926bcb5c237593b41a6f12f26f46e12d..9005f3795885f59d4fc95459a0a86e2e1006eec1 100644
--- a/LayoutTests/media/encrypted-media/encrypted-media-lifetime-reload.html
+++ b/LayoutTests/media/encrypted-media/encrypted-media-lifetime-reload.html
@@ -78,12 +78,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.webm';
+ return video.setMediaKeys(mediaKeys);
+ }).then(function(result) {
video.play();
}).catch(function(error) {
forceTestFailureFromPromise(test, error);
« no previous file with comments | « no previous file | LayoutTests/media/encrypted-media/encrypted-media-playback-multiple-sessions.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698