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

Side by Side Diff: third_party/WebKit/LayoutTests/media/video-src-empty.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 src=media-file.js></script> 7 <script src=media-file.js></script>
6 <script> 8 <script>
7 9
8 function start() 10 function start()
9 { 11 {
10 findMediaElement(); 12 findMediaElement();
11 13
12 waitForEvent("loadstart"); 14 waitForEvent("loadstart");
13 waitForEvent("loadedmetadata"); 15 waitForEvent("loadedmetadata");
14 waitForEvent("loadeddata"); 16 waitForEvent("loadeddata");
15 waitForEvent("abort"); 17 waitForEvent("abort");
16 waitForEvent("emptied"); 18 waitForEvent("emptied");
17 waitForEvent("canplaythrough", testLoad); 19 waitForEvent("canplaythrough", testLoad);
(...skipping 16 matching lines...) Expand all
34 consoleWrite("<br>** &lt;video&gt; with empty src attribute**"); 36 consoleWrite("<br>** &lt;video&gt; with empty src attribute**");
35 run('video.src = ""'); 37 run('video.src = ""');
36 } 38 }
37 </script> 39 </script>
38 </head> 40 </head>
39 <body onload="start()"> 41 <body onload="start()">
40 <video width=320 height=60 controls></video> 42 <video width=320 height=60 controls></video>
41 <p> &lt;video&gt; element with src="" should invoke media element's load algorithm and should fire 'error' event. Network state should be NETWORK_NO_SOU RCE and set error to MEDIA_ERR_SRC_NOT_SUPPORTED.</p> 43 <p> &lt;video&gt; element with src="" should invoke media element's load algorithm and should fire 'error' event. Network state should be NETWORK_NO_SOU RCE and set error to MEDIA_ERR_SRC_NOT_SUPPORTED.</p>
42 </body> 44 </body>
43 </html> 45 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698