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

Side by Side Diff: third_party/WebKit/LayoutTests/media/video-plays-past-end-of-test.html

Issue 2099083002: Convert video-pause* and video-plays* tests to testharness.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments 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
OLDNEW
1 <p>This test intentionally lets the video keep playing past endTest() to ensure 1 <!DOCTYPE html>
2 <p>This test intentionally lets the video keep playing past end of test to ensur e
2 that shutdown is clean, since DumpRenderTree used to crash in this case.</p> 3 that shutdown is clean, since DumpRenderTree used to crash in this case.</p>
3 4 <video autoplay></video>
4 <video autoplay id="video"></video> 5 <script src="media-file.js"></script>
5 <script src=media-file.js></script> 6 <script>
6 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956 7 testRunner.dumpAsText();
7 (Please avoid writing new tests using video-test.js) --> 8 var video = document.querySelector("video");
8 <script src=video-test.js></script> 9 video.onplaying = function() {
9 <script type="text/javascript"> 10 testRunner.notifyDone();
10 if (window.testRunner) 11 };
11 testRunner.dumpAsText();
12 waitForEvent("playing", null, true);
13 video.src = findMediaFile("video", "content/test"); 12 video.src = findMediaFile("video", "content/test");
14 </script> 13 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698