Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / media / media-constants.html
blobb4ad1a6fd5f573b81a24efe60de086e0472ef013
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src=video-test.js></script>
5 <script type="text/javascript">
6 function doTest ()
8 testExpected("HTMLMediaElement.NETWORK_EMPTY", 0);
9 testExpected("HTMLMediaElement.NETWORK_IDLE", 1);
10 testExpected("HTMLMediaElement.NETWORK_LOADING", 2);
11 testExpected("HTMLMediaElement.NETWORK_NO_SOURCE", 3);
12 consoleWrite("");
14 testExpected("HTMLMediaElement.HAVE_NOTHING", 0);
15 testExpected("HTMLMediaElement.HAVE_METADATA", 1);
16 testExpected("HTMLMediaElement.HAVE_CURRENT_DATA", 2);
17 testExpected("HTMLMediaElement.HAVE_FUTURE_DATA", 3);
18 testExpected("HTMLMediaElement.HAVE_ENOUGH_DATA", 4);
19 consoleWrite("");
21 testExpected("MediaError.MEDIA_ERR_ABORTED", 1);
22 testExpected("MediaError.MEDIA_ERR_NETWORK", 2);
23 testExpected("MediaError.MEDIA_ERR_DECODE", 3);
24 testExpected("MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED", 4);
26 endTest();
28 </script>
29 </head>
30 <body onload="doTest()">
31 <p>Test HTMLMediaElement and MediaError constants.</p>
32 </body>
33 </html>