| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>Verify MediaKeySession.keyStatuses with multiple sessions</title> | 4 <title>Verify MediaKeySession.keyStatuses with multiple sessions</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 mediaKeySession1; | 13 var mediaKeySession1; |
| 15 var mediaKeySession2; | 14 var mediaKeySession2; |
| 16 var initDataType; | 15 var initDataType; |
| 17 var initData; | 16 var initData; |
| 18 | 17 |
| 19 // Even though key ids are uint8, using printable values so that | 18 // Even though key ids are uint8, using printable values so that |
| 20 // they can be verified easily. | 19 // they can be verified easily. |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 | 107 |
| 109 // Generate a request on session1. | 108 // Generate a request on session1. |
| 110 return mediaKeySession1.generateRequest(initDataType, initDa
ta); | 109 return mediaKeySession1.generateRequest(initDataType, initDa
ta); |
| 111 }).catch(function(error) { | 110 }).catch(function(error) { |
| 112 forceTestFailureFromPromise(test, error); | 111 forceTestFailureFromPromise(test, error); |
| 113 }); | 112 }); |
| 114 }, 'Verify MediaKeySession.keyStatuses with multiple sessions.'); | 113 }, 'Verify MediaKeySession.keyStatuses with multiple sessions.'); |
| 115 </script> | 114 </script> |
| 116 </body> | 115 </body> |
| 117 </html> | 116 </html> |
| OLD | NEW |