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

Side by Side 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <title>Test, rendering horizontal line-positioned cues.</title>
3 <head> 3 <script src="../media-file.js"></script>
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 4 <video>
5 <track src="captions-webvtt/captions-snap-to-lines-set.vtt" kind="captions" default>
6 </video>
7 <script>
8 var video = document.querySelector("video");
9 video.src = findMediaFile("video", "../content/test");
5 10
6 <script src=../media-file.js></script> 11 testRunner.waitUntilDone();
12 video.onseeked = function() {
13 testRunner.notifyDone();
14 }
7 15
8 <script> 16 video.currentTime = 0.25;
9 var requirePixelDump = true; 17 </script>
10
11 function loaded()
12 {
13 consoleWrite("Rendering horizontal line-positioned cues.");
14 findMediaElement();
15
16 testTrack = document.querySelector('track');
17 video.src = findMediaFile('video', '../content/test');
18
19 waitForEvent('seeked', endTest);
20 waitForEvent('canplaythrough', function() {
21 video.currentTime = .25;
22 });
23 }
24
25 </script>
26
27 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956
28 (Please avoid writing new tests using video-test.js) -->
29 <script src=../video-test.js></script>
30 </head>
31 <body onload="loaded()">
32 <video>
33 <track src="captions-webvtt/captions-snap-to-lines-set.vtt" kind="ca ptions" default>
34 </video>
35 </body>
36 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698