Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(145)

Side by Side Diff: third_party/WebKit/LayoutTests/media/media-constants.html

Issue 1715303002: Add TODOs to convert from video-test.js to testharness.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add bug ref Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956
5 (Please avoid writing new tests using video-test.js) -->
4 <script src=video-test.js></script> 6 <script src=video-test.js></script>
5 <script type="text/javascript"> 7 <script type="text/javascript">
6 function doTest () 8 function doTest ()
7 { 9 {
8 testExpected("HTMLMediaElement.NETWORK_EMPTY", 0); 10 testExpected("HTMLMediaElement.NETWORK_EMPTY", 0);
9 testExpected("HTMLMediaElement.NETWORK_IDLE", 1); 11 testExpected("HTMLMediaElement.NETWORK_IDLE", 1);
10 testExpected("HTMLMediaElement.NETWORK_LOADING", 2); 12 testExpected("HTMLMediaElement.NETWORK_LOADING", 2);
11 testExpected("HTMLMediaElement.NETWORK_NO_SOURCE", 3); 13 testExpected("HTMLMediaElement.NETWORK_NO_SOURCE", 3);
12 consoleWrite(""); 14 consoleWrite("");
13 15
14 testExpected("HTMLMediaElement.HAVE_NOTHING", 0); 16 testExpected("HTMLMediaElement.HAVE_NOTHING", 0);
15 testExpected("HTMLMediaElement.HAVE_METADATA", 1); 17 testExpected("HTMLMediaElement.HAVE_METADATA", 1);
16 testExpected("HTMLMediaElement.HAVE_CURRENT_DATA", 2); 18 testExpected("HTMLMediaElement.HAVE_CURRENT_DATA", 2);
17 testExpected("HTMLMediaElement.HAVE_FUTURE_DATA", 3); 19 testExpected("HTMLMediaElement.HAVE_FUTURE_DATA", 3);
18 testExpected("HTMLMediaElement.HAVE_ENOUGH_DATA", 4); 20 testExpected("HTMLMediaElement.HAVE_ENOUGH_DATA", 4);
19 consoleWrite(""); 21 consoleWrite("");
20 22
21 testExpected("MediaError.MEDIA_ERR_ABORTED", 1); 23 testExpected("MediaError.MEDIA_ERR_ABORTED", 1);
22 testExpected("MediaError.MEDIA_ERR_NETWORK", 2); 24 testExpected("MediaError.MEDIA_ERR_NETWORK", 2);
23 testExpected("MediaError.MEDIA_ERR_DECODE", 3); 25 testExpected("MediaError.MEDIA_ERR_DECODE", 3);
24 testExpected("MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED", 4); 26 testExpected("MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED", 4);
25 27
26 endTest(); 28 endTest();
27 } 29 }
28 </script> 30 </script>
29 </head> 31 </head>
30 <body onload="doTest()"> 32 <body onload="doTest()">
31 <p>Test HTMLMediaElement and MediaError constants.</p> 33 <p>Test HTMLMediaElement and MediaError constants.</p>
32 </body> 34 </body>
33 </html> 35 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698