Index: third_party/WebKit/LayoutTests/media/video-plays-past-end-of-test.html |
diff --git a/third_party/WebKit/LayoutTests/media/video-plays-past-end-of-test.html b/third_party/WebKit/LayoutTests/media/video-plays-past-end-of-test.html |
index 3a8656c2c0126d81d8620348bdc66628480142c7..fe5e72d39938c478310f6b926b6cb30991f9a1f9 100644 |
--- a/third_party/WebKit/LayoutTests/media/video-plays-past-end-of-test.html |
+++ b/third_party/WebKit/LayoutTests/media/video-plays-past-end-of-test.html |
@@ -1,14 +1,15 @@ |
-<p>This test intentionally lets the video keep playing past endTest() to ensure |
-that shutdown is clean, since DumpRenderTree used to crash in this case.</p> |
- |
-<video autoplay id="video"></video> |
-<script src=media-file.js></script> |
-<!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956 |
- (Please avoid writing new tests using video-test.js) --> |
-<script src=video-test.js></script> |
-<script type="text/javascript"> |
-if (window.testRunner) |
- testRunner.dumpAsText(); |
-waitForEvent("playing", null, true); |
-video.src = findMediaFile("video", "content/test"); |
-</script> |
+<!DOCTYPE html> |
+<title>This test intentionally lets the video keep playing past End of Test to ensure |
fs
2016/06/26 15:20:08
Not sure there's much use "testharnessifying" this
Srirama
2016/06/26 18:36:38
Done.
|
+that shutdown is clean, since DumpRenderTree used to crash in this case.</title> |
+<script src="../resources/testharness.js"></script> |
+<script src="../resources/testharnessreport.js"></script> |
+<script src="media-file.js"></script> |
+<video autoplay></video> |
+<script> |
+async_test(function(t) { |
+ var video = document.querySelector("video"); |
+ testRunner.dumpAsText(); |
+ video.onplaying = t.step_func_done(); |
+ video.src = findMediaFile("video", "content/test"); |
+}); |
+</script> |