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

Side by Side Diff: third_party/WebKit/LayoutTests/media/track/track-cue-rendering-vertical.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: add reference tests 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 lang="ja"> 2 <title>Test rendering vertical line-positioned cues with Japanese text.</title>
3 <head> 3 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4 <meta charset="utf-8"> 4 <script src="../media-file.js"></script>
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <video>
6 <track src="captions-webvtt/captions-snap-to-lines-set.vtt" kind="captions" default>
7 </video>
8 <script>
9 testRunner.waitUntilDone();
fs 2016/07/19 14:17:05 I'd suggest moving this down to just before settin
10 var video = document.querySelector("video");
11 video.src = findMediaFile("video", "../content/test");
12 video.currentTime = 0.75;
6 13
7 <script src=../media-file.js></script> 14 video.onloadeddata = function() {
8 15 testRunner.notifyDone();
9 <script> 16 };
10 var requirePixelDump = true; 17 </script>
11
12 function loaded()
13 {
14 consoleWrite("Rendering vertical line-positioned cues with Japanese text.");
15 findMediaElement();
16
17 testTrack = document.querySelector('track');
18 video.src = findMediaFile('video', '../content/test');
19
20 waitForEvent('seeked', endTest);
21 waitForEvent('canplaythrough', function() {
22 video.currentTime = .75;
23 });
24 }
25
26 </script>
27
28 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956
29 (Please avoid writing new tests using video-test.js) -->
30 <script src=../video-test.js></script>
31 </head>
32 <body onload="loaded()">
33 <video>
34 <track src="captions-webvtt/captions-snap-to-lines-set.vtt" kind="ca ptions" default>
35 </video>
36 </body>
37 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698