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

Unified Diff: LayoutTests/media/encrypted-media/encrypted-media-session-closed-event.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-session-closed-event.html
diff --git a/LayoutTests/media/encrypted-media/encrypted-media-session-closed-event.html b/LayoutTests/media/encrypted-media/encrypted-media-session-closed-event.html
index af2d116a5e1d53c6de7683ca083981e05319ecee..ff0bb919c0eab63aec3af7b3da67ae553081074f 100644
--- a/LayoutTests/media/encrypted-media/encrypted-media-session-closed-event.html
+++ b/LayoutTests/media/encrypted-media/encrypted-media-session-closed-event.html
@@ -11,10 +11,12 @@
<script>
async_test(function(test)
{
+ 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() {
// Wait for the session to be closed.
mediaKeySession.closed.then(function(result) {
assert_equals(result, undefined);

Powered by Google App Engine
This is Rietveld 408576698