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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/media/video-play-progress.html

Issue 2177003002: Convert video-play* http tests to testharness.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/media/video-play-progress-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <!DOCTYPE html>
2 <head> 2 <title>Test that at least one progress event is fired after starting to load the video.</title>
3 <script src=../../media-resources/media-file.js></script> 3 <script src="../resources/testharness.js"></script>
4 <!-- TODO(foolip): 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 src="../../media-resources/media-file.js"></script>
6 <script src=../../media-resources/video-test.js></script> 6 <video></video>
7 <script> 7 <script>
8 function start() { 8 async_test(function(t) {
9 findMediaElement(); 9 var video = document.querySelector("video");
10 10
11 var progressCount = 0; 11 var watcher = new EventWatcher(t, video, ["loadstart", "progress"]);
12 watcher.wait_for(["loadstart", "progress"]).then(t.step_func_done());
12 13
13 // Make sure we've at least reached NETWORK_LOADING before waiting for progress. 14 var mediaFile = findMediaFile("video", "resources/test");
14 waitForEvent('loadstart', function() { 15 video.src = "http://127.0.0.1:8000/" + mediaFile;
15 waitForEventAndEnd('progress') 16 video.play();
16 } ); 17 });
17 18 </script>
18 var mediaFile = findMediaFile("video", "resources/test");
19 video.src = "http://127.0.0.1:8000/" + mediaFile;
20 run("video.play()");
21 }
22 </script>
23 </head>
24 <body onload="start()">
25 <video></video>
26 <p>Test that at least one progress event is fired after starting to load t he video.</p>
27 </body>
28 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/media/video-play-progress-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698