Index: third_party/WebKit/LayoutTests/media/video-display-none-crash.html |
diff --git a/third_party/WebKit/LayoutTests/media/video-display-none-crash.html b/third_party/WebKit/LayoutTests/media/video-display-none-crash.html |
index 8ed48a47386589aa0fb1317428c2283eb11bc125..67812acce4593bf300f9f1c45bf33515b2fed115 100644 |
--- a/third_party/WebKit/LayoutTests/media/video-display-none-crash.html |
+++ b/third_party/WebKit/LayoutTests/media/video-display-none-crash.html |
@@ -1,13 +1,15 @@ |
-<video controls></video> |
-<p>Test that pause() after changing display to "none" doesn't cause a crash.</p> |
+<!DOCTYPE html> |
+<title>Test that pause() after changing display to "none" doesn't cause a crash.</title> |
+<script src="../resources/testharness.js"></script> |
+<script src="../resources/testharnessreport.js"></script> |
<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> |
+<video></video> |
<script> |
+test(function() { |
+ var video = document.querySelector("video"); |
video.src = findMediaFile("video", "content/test"); |
video.play(); |
video.style.display = "none"; |
video.pause(); |
- endTest(); |
-</script> |
+}); |
+</script> |