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

Unified Diff: third_party/WebKit/LayoutTests/media/track/track-cue-rendering-horizontal.html

Issue 2081513002: Remove video-test.js dependency from track-cue-rendering* tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove video-test.js dependency Created 4 years, 5 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-cue-rendering-horizontal.html
diff --git a/third_party/WebKit/LayoutTests/media/track/track-cue-rendering-horizontal.html b/third_party/WebKit/LayoutTests/media/track/track-cue-rendering-horizontal.html
index c1619bf4c90960b4fef6ec7e9ad4e213c688a02e..258e7cd8ace90011a4f5a77b243730105c777d33 100644
--- a/third_party/WebKit/LayoutTests/media/track/track-cue-rendering-horizontal.html
+++ b/third_party/WebKit/LayoutTests/media/track/track-cue-rendering-horizontal.html
@@ -1,36 +1,17 @@
<!DOCTYPE html>
-<html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<title>Test, rendering horizontal line-positioned cues.</title>
+<script src="../media-file.js"></script>
+<video>
+ <track src="captions-webvtt/captions-snap-to-lines-set.vtt" kind="captions" default>
+</video>
+<script>
+var video = document.querySelector("video");
+video.src = findMediaFile("video", "../content/test");
- <script src=../media-file.js></script>
+testRunner.waitUntilDone();
+video.onseeked = function() {
+ testRunner.notifyDone();
+}
- <script>
- var requirePixelDump = true;
-
- function loaded()
- {
- consoleWrite("Rendering horizontal line-positioned cues.");
- findMediaElement();
-
- testTrack = document.querySelector('track');
- video.src = findMediaFile('video', '../content/test');
-
- waitForEvent('seeked', endTest);
- waitForEvent('canplaythrough', function() {
- video.currentTime = .25;
- });
- }
-
- </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 onload="loaded()">
- <video>
- <track src="captions-webvtt/captions-snap-to-lines-set.vtt" kind="captions" default>
- </video>
- </body>
-</html>
+video.currentTime = 0.25;
+</script>

Powered by Google App Engine
This is Rietveld 408576698