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

Side by Side Diff: third_party/WebKit/LayoutTests/media/video-play-empty-events.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 <html> 1 <html>
2 <body> 2 <body>
3 3
4 <video controls></video> 4 <video controls></video>
5 <p>Test that play() from EMPTY network state triggers load() and async play event.</p> 5 <p>Test that play() from EMPTY network state triggers load() and async play event.</p>
6 <script src=media-file.js></script> 6 <script src=media-file.js></script>
7 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956
8 (Please avoid writing new tests using video-test.js) -->
7 <script src=video-test.js></script> 9 <script src=video-test.js></script>
8 <script> 10 <script>
9 testExpected("video.networkState", HTMLMediaElement.NETWORK_EMPTY); 11 testExpected("video.networkState", HTMLMediaElement.NETWORK_EMPTY);
10 12
11 waitForEvent("loadstart"); 13 waitForEvent("loadstart");
12 waitForEvent("ratechange"); 14 waitForEvent("ratechange");
13 waitForEvent("waiting"); 15 waitForEvent("waiting");
14 waitForEvent("ratechange"); 16 waitForEvent("ratechange");
15 waitForEvent("durationchange"); 17 waitForEvent("durationchange");
16 waitForEvent("loadedmetadata"); 18 waitForEvent("loadedmetadata");
17 waitForEvent("loadeddata"); 19 waitForEvent("loadeddata");
18 waitForEvent("canplay"); 20 waitForEvent("canplay");
19 waitForEvent("play"); 21 waitForEvent("play");
20 22
21 waitForEvent('playing', function () { testExpected("video.paused", false ); endTest(); } ); 23 waitForEvent('playing', function () { testExpected("video.paused", false ); endTest(); } );
22 24
23 video.src = findMediaFile("video", "content/test"); 25 video.src = findMediaFile("video", "content/test");
24 run("video.play()"); 26 run("video.play()");
25 consoleWrite("SCRIPT DONE"); 27 consoleWrite("SCRIPT DONE");
26 </script> 28 </script>
27 29
28 </body> 30 </body>
29 </html> 31 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698