OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>Test handling of invalid responses for update().</title> | 4 <title>Test handling of invalid responses for update().</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 // This test passes |response| to update() as a JSON Web Key Set. | 11 // This test passes |response| to update() as a JSON Web Key Set. |
13 // CDMs other than Clear Key won't expect |response| in this format. | 12 // CDMs other than Clear Key won't expect |response| in this format. |
14 | 13 |
15 async_test(function(test) | 14 async_test(function(test) |
16 { | 15 { |
17 var initDataType; | 16 var initDataType; |
18 var initData; | 17 var initData; |
19 var mediaKeySession; | 18 var mediaKeySession; |
20 | 19 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 return access.createMediaKeys(); | 59 return access.createMediaKeys(); |
61 }).then(function(mediaKeys) { | 60 }).then(function(mediaKeys) { |
62 mediaKeySession = mediaKeys.createSession(); | 61 mediaKeySession = mediaKeys.createSession(); |
63 waitForEventAndRunStep('message', mediaKeySession, processMe
ssage, test); | 62 waitForEventAndRunStep('message', mediaKeySession, processMe
ssage, test); |
64 return mediaKeySession.generateRequest(initDataType, initDat
a); | 63 return mediaKeySession.generateRequest(initDataType, initDat
a); |
65 }); | 64 }); |
66 }, 'update() with response longer than 64Kb characters.'); | 65 }, 'update() with response longer than 64Kb characters.'); |
67 </script> | 66 </script> |
68 </body> | 67 </body> |
69 </html> | 68 </html> |
OLD | NEW |