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

Unified Diff: third_party/WebKit/LayoutTests/media/track/track-remove-quickly.html

Issue 2078443003: Convert media-element*, track-cue* and track-remove* tests to testharness.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use "onenter" event attribute 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/track/track-remove-quickly.html
diff --git a/third_party/WebKit/LayoutTests/media/track/track-remove-quickly.html b/third_party/WebKit/LayoutTests/media/track/track-remove-quickly.html
index 2712279e7d0836d777defc0da8b7062dae896fe8..864902911e4b1b159ba9806ff48ec9d528181431 100644
--- a/third_party/WebKit/LayoutTests/media/track/track-remove-quickly.html
+++ b/third_party/WebKit/LayoutTests/media/track/track-remove-quickly.html
@@ -1,23 +1,13 @@
<!DOCTYPE html>
-<html>
- <head>
- <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>
- </head>
- <body>
- <div id=video_container></div>
- <script>
- var mediaFile = findMediaFile("video", "../content/test");
- document.getElementById('video_container').innerHTML = "<video src='" + mediaFile + "' controls ><track kind='captions' src='captions-webvtt/simple-captions.vtt' default ></video>";
- </script>
- <div>
- This test that removing a track element before it has been processed doesn't crash (https://bugs.webkit.org/show_bug.cgi?id=85095).
- <p>If this test does not crash, it passes.</p>
- </div>
- <script>
- endTest();
- </script>
- </body>
-</html>
+<title>This test that removing a track element before it has been processed doesn't crash (https://bugs.webkit.org/show_bug.cgi?id=85095).</title>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script src="../media-file.js"></script>
+<div id="video_container"></div>
+<script>
+var mediaFile = findMediaFile("video", "../content/test");
+document.getElementById("video_container").innerHTML = "<video src='" + mediaFile + "' controls ><track kind='captions' src='captions-webvtt/simple-captions.vtt' default ></video>";
+test(function() {
+// Test passes if it doesn't crash.
+});
+</script>

Powered by Google App Engine
This is Rietveld 408576698