| <!DOCTYPE html> |
| <html> |
| <head> |
| <script src=../video-test.js></script> |
| <script type="text/javascript"> |
| function doTest () |
| { |
| testExpected("WebKitMediaKeyError.MEDIA_KEYERR_UNKNOWN", 1); |
| testExpected("WebKitMediaKeyError.MEDIA_KEYERR_CLIENT", 2); |
| testExpected("WebKitMediaKeyError.MEDIA_KEYERR_SERVICE", 3); |
| testExpected("WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT", 4); |
| testExpected("WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE", 5); |
| testExpected("WebKitMediaKeyError.MEDIA_KEYERR_DOMAIN", 6); |
| consoleWrite(""); |
| |
| testExpected("MediaError.MEDIA_ERR_ENCRYPTED", 5); |
| |
| endTest(); |
| } |
| </script> |
| </head> |
| <body onload="doTest()"> |
| <p>Test WebKitMediaKeyError constants and additional MediaError constant.</p> |
| </body> |
| </html> |