OLD | NEW |
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 Loading... |
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> |
OLD | NEW |