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

Unified Diff: LayoutTests/media/encrypted-media/encrypted-media-waiting-for-a-key.html

Issue 543173002: Implement MediaKeySession.generateRequest() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase 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-waiting-for-a-key.html
diff --git a/LayoutTests/media/encrypted-media/encrypted-media-waiting-for-a-key.html b/LayoutTests/media/encrypted-media/encrypted-media-waiting-for-a-key.html
index b7bb0629539ef902f4c009cf5aceaa446add3b0c..d6da225632357863843c7c1e51ada4a4c2ce9e64 100644
--- a/LayoutTests/media/encrypted-media/encrypted-media-waiting-for-a-key.html
+++ b/LayoutTests/media/encrypted-media/encrypted-media-waiting-for-a-key.html
@@ -33,10 +33,9 @@
return;
sessionCreated = true;
- video.mediaKeys.createSession(event.contentType, event.initData).then(function(newSession) {
- mediaKeySession = newSession;
- waitForEventAndRunStep('message', mediaKeySession, onMessage, test);
- }).catch(function(error) {
+ mediaKeySession = video.mediaKeys.createSession();
+ waitForEventAndRunStep('message', mediaKeySession, onMessage, test);
+ mediaKeySession.generateRequest(event.contentType, event.initData).catch(function(error) {
forceTestFailureFromPromise(test, error);
});
}
« no previous file with comments | « LayoutTests/media/encrypted-media/encrypted-media-v2-syntax.html ('k') | Source/modules/encryptedmedia/MediaKeySession.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698