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

Side by Side Diff: LayoutTests/media/encrypted-media/encrypted-media-session-closed-event.html

Issue 568033003: Implement MediaKeySession close() and remove() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 2 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Test MediaKeySession closed event</title> 4 <title>Test MediaKeySession closed event</title>
5 <script src="encrypted-media-utils.js"></script> 5 <script src="encrypted-media-utils.js"></script>
6 <script src="../../resources/testharness.js"></script> 6 <script src="../../resources/testharness.js"></script>
7 <script src="../../resources/testharnessreport.js"></script> 7 <script src="../../resources/testharnessreport.js"></script>
8 </head> 8 </head>
9 <body> 9 <body>
10 <div id="log"></div> 10 <div id="log"></div>
(...skipping 13 matching lines...) Expand all
24 // closed attribute immediately returns a fulfilled 24 // closed attribute immediately returns a fulfilled
25 // promise. 25 // promise.
26 return mediaKeySession.closed; 26 return mediaKeySession.closed;
27 }).then(function(result) { 27 }).then(function(result) {
28 assert_equals(result, undefined); 28 assert_equals(result, undefined);
29 test.done(); 29 test.done();
30 }); 30 });
31 31
32 // release() should result in the closed promise being 32 // release() should result in the closed promise being
33 // fulfilled. 33 // fulfilled.
34 return mediaKeySession.release(); 34 return mediaKeySession.close();
35 }).catch(function(error) { 35 }).catch(function(error) {
36 forceTestFailureFromPromise(test, error); 36 forceTestFailureFromPromise(test, error);
37 }); 37 });
38 }, 'Test MediaKeySession closed event.'); 38 }, 'Test MediaKeySession closed event.');
39 </script> 39 </script>
40 </body> 40 </body>
41 </html> 41 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698