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

Side by Side Diff: third_party/WebKit/LayoutTests/media/track/track-large-timestamp.html

Issue 1938533002: Convert track-language* and track-large* tests to testharness.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 7 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>Tests that a very large timestamp is parsed correctly.</title>
3 <head> 3 <script src="../media-file.js"></script>
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 4 <script src="../../resources/testharness.js"></script>
5 5 <script src="../../resources/testharnessreport.js"></script>
6 <script src=../media-file.js></script> 6 <video>
7 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 7 <track src="captions-webvtt/large-timestamp.vtt" default>
8 (Please avoid writing new tests using video-test.js) --> 8 </video>
9 <script src=../video-test.js></script> 9 <script>
10 <script> 10 async_test(function(t) {
11 11 var testTrack = document.querySelector("track");
12 function loaded() 12 testTrack.onload = t.step_func_done(function() {
13 { 13 assert_equals(testTrack.track.cues.length, 1);
14 track = document.getElementsByTagName("track")[0]; 14 var cue = testTrack.track.cues[0];
15 testExpected("track.track.cues.length", 1); 15 assert_equals(parseInt(cue.id), 1);
16 cue = testTrack.track.cues[0]; 16 assert_equals(cue.startTime / 3600, 1234567);
17 testExpected("cue.id", 1); 17 assert_equals(cue.endTime / 3600, 1234567890);
18 testExpected("cue.startTime / 60 / 60", 1234567); 18 });
19 testExpected("cue.endTime / 60 / 60", 1234567890); 19 });
20 consoleWrite(""); 20 </script>
21
22 endTest();
23 }
24
25 </script>
26 </head>
27 <body>
28 <video controls>
29 <track id="testTrack" src="captions-webvtt/large-timestamp.vtt" onlo ad="loaded()" default>
30 </video>
31 <p>Tests that a very large timestamp is parsed correctly.</p>
32 </body>
33 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698