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

Unified Diff: third_party/WebKit/LayoutTests/media/video-display-none-crash.html

Issue 2096413003: Convert video-delay* and video-display* tests to testharness.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: modify as per suggestion Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698