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

Unified Diff: LayoutTests/media/encrypted-media/encrypted-media-async-creation-with-gc.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
« no previous file with comments | « no previous file | LayoutTests/media/encrypted-media/encrypted-media-lifetime-mediakeys-with-session.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-async-creation-with-gc.html
diff --git a/LayoutTests/media/encrypted-media/encrypted-media-async-creation-with-gc.html b/LayoutTests/media/encrypted-media/encrypted-media-async-creation-with-gc.html
index a00338a072c35b1e7c09c33b0577689b7ed5be65..5a5b07e640f1a46c65481176ab2eb1b757669306 100644
--- a/LayoutTests/media/encrypted-media/encrypted-media-async-creation-with-gc.html
+++ b/LayoutTests/media/encrypted-media/encrypted-media-async-creation-with-gc.html
@@ -14,10 +14,12 @@
// Run garbage collection often.
setInterval(asyncGC, 0);
+ var mediaKeySession;
MediaKeys.create('org.w3.clearkey').then(function(mediaKeys) {
var initDataType = getInitDataType();
- return mediaKeys.createSession(initDataType, getInitData(initDataType));
- }).then(function(mediaKeySession) {
+ mediaKeySession = mediaKeys.createSession();
+ return mediaKeySession.generateRequest(initDataType, getInitData(initDataType));
+ }).then(function() {
return mediaKeySession.release();
}).then(function(result) {
test.done();
« no previous file with comments | « no previous file | LayoutTests/media/encrypted-media/encrypted-media-lifetime-mediakeys-with-session.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698