OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src=../../video-test.js></script> | 4 <script src=../../video-test.js></script> |
5 <script type="text/javascript"> | 5 <script type="text/javascript"> |
6 function doTest () | 6 function doTest () |
7 { | 7 { |
8 testExpected("MediaKeyError.MEDIA_KEYERR_UNKNOWN", 1); | 8 testExpected("MediaKeyError.MEDIA_KEYERR_UNKNOWN", 1); |
9 testExpected("MediaKeyError.MEDIA_KEYERR_CLIENT", 2); | 9 testExpected("MediaKeyError.MEDIA_KEYERR_CLIENT", 2); |
10 testExpected("MediaKeyError.MEDIA_KEYERR_SERVICE", 3); | 10 testExpected("MediaKeyError.MEDIA_KEYERR_SERVICE", 3); |
11 testExpected("MediaKeyError.MEDIA_KEYERR_OUTPUT", 4); | 11 testExpected("MediaKeyError.MEDIA_KEYERR_OUTPUT", 4); |
12 testExpected("MediaKeyError.MEDIA_KEYERR_HARDWARECHANGE", 5); | 12 testExpected("MediaKeyError.MEDIA_KEYERR_HARDWARECHANGE", 5); |
13 testExpected("MediaKeyError.MEDIA_KEYERR_DOMAIN", 6); | 13 testExpected("MediaKeyError.MEDIA_KEYERR_DOMAIN", 6); |
14 consoleWrite(""); | 14 consoleWrite(""); |
15 | 15 |
16 testExpected("MediaError.MEDIA_ERR_ENCRYPTED", 5); | |
17 | |
18 endTest(); | 16 endTest(); |
19 } | 17 } |
20 </script> | 18 </script> |
21 </head> | 19 </head> |
22 <body onload="doTest()"> | 20 <body onload="doTest()"> |
23 <p>Test MediaKeyError constants and additional MediaError constant.</p> | 21 <p>Test MediaKeyError constants and additional MediaError constant.</p> |
24 </body> | 22 </body> |
25 </html> | 23 </html> |
OLD | NEW |