OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <title>Test TextTrack constants</title> |
3 <head> | 3 <script src="../../resources/testharness.js"></script> |
4 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 | 4 <script src="../../resources/testharnessreport.js"></script> |
5 (Please avoid writing new tests using video-test.js) --> | 5 <script> |
6 <script src=../video-test.js></script> | 6 test(function() { |
7 <script type="text/javascript"> | 7 assert_equals(HTMLTrackElement.NONE, 0); |
8 function doTest () | 8 assert_equals(HTMLTrackElement.LOADING, 1); |
9 { | 9 assert_equals(HTMLTrackElement.LOADED, 2); |
10 testExpected("HTMLTrackElement.NONE", 0); | 10 assert_equals(HTMLTrackElement.ERROR, 3); |
11 testExpected("HTMLTrackElement.LOADING", 1); | 11 }); |
12 testExpected("HTMLTrackElement.LOADED", 2); | 12 </script> |
13 testExpected("HTMLTrackElement.ERROR", 3); | |
14 | |
15 endTest(); | |
16 } | |
17 </script> | |
18 </head> | |
19 <body onload="doTest()"> | |
20 <p>Test TextTrack constants.</p> | |
21 </body> | |
22 </html> | |
OLD | NEW |