OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>Verify MediaKeySession.keyStatuses handles multiple keys</title> | 4 <title>Verify MediaKeySession.keyStatuses handles multiple keys</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> | |
11 <script> | 10 <script> |
12 async_test(function(test) | 11 async_test(function(test) |
13 { | 12 { |
14 var mediaKeySession; | 13 var mediaKeySession; |
15 var initDataType; | 14 var initDataType; |
16 var initData; | 15 var initData; |
17 | 16 |
18 // Create a list of multiple unique keyIds. | 17 // Create a list of multiple unique keyIds. |
19 var keyIds = [ stringToUint8Array('keyid'), | 18 var keyIds = [ stringToUint8Array('keyid'), |
20 stringToUint8Array('a really long keyid'), | 19 stringToUint8Array('a really long keyid'), |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 | 80 |
82 waitForEventAndRunStep('message', mediaKeySession, processMe
ssage, test); | 81 waitForEventAndRunStep('message', mediaKeySession, processMe
ssage, test); |
83 return mediaKeySession.generateRequest(initDataType, initDat
a); | 82 return mediaKeySession.generateRequest(initDataType, initDat
a); |
84 }).catch(function(error) { | 83 }).catch(function(error) { |
85 forceTestFailureFromPromise(test, error); | 84 forceTestFailureFromPromise(test, error); |
86 }); | 85 }); |
87 }, 'Verify MediaKeySession.keyStatuses handles multiple keys.'); | 86 }, 'Verify MediaKeySession.keyStatuses handles multiple keys.'); |
88 </script> | 87 </script> |
89 </body> | 88 </body> |
90 </html> | 89 </html> |
OLD | NEW |