Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <p>This test intentionally lets the video keep playing past endTest() to ensure | 1 <!DOCTYPE html> |
| 2 that shutdown is clean, since DumpRenderTree used to crash in this case.</p> | 2 <title>This test intentionally lets the video keep playing past End of Test to e nsure |
|
fs
2016/06/26 15:20:08
Not sure there's much use "testharnessifying" this
Srirama
2016/06/26 18:36:38
Done.
| |
| 3 | 3 that shutdown is clean, since DumpRenderTree used to crash in this case.</title> |
| 4 <video autoplay id="video"></video> | 4 <script src="../resources/testharness.js"></script> |
| 5 <script src=media-file.js></script> | 5 <script src="../resources/testharnessreport.js"></script> |
| 6 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956 | 6 <script src="media-file.js"></script> |
| 7 (Please avoid writing new tests using video-test.js) --> | 7 <video autoplay></video> |
| 8 <script src=video-test.js></script> | 8 <script> |
| 9 <script type="text/javascript"> | 9 async_test(function(t) { |
| 10 if (window.testRunner) | 10 var video = document.querySelector("video"); |
| 11 testRunner.dumpAsText(); | 11 testRunner.dumpAsText(); |
| 12 waitForEvent("playing", null, true); | 12 video.onplaying = t.step_func_done(); |
| 13 video.src = findMediaFile("video", "content/test"); | 13 video.src = findMediaFile("video", "content/test"); |
| 14 </script> | 14 }); |
| 15 </script> | |
| OLD | NEW |