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

Side by Side Diff: third_party/WebKit/LayoutTests/media/track/track-webvtt-tc010-no-timings.html

Issue 1962593002: Convert track-webvtt-tc[008-010] tests to testharness.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test failure 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 cue without timings are ignored.</title>
3 <head> 3 <script src="track-helpers.js"></script>
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 4 <script src="../../resources/testharness.js"></script>
5 <script src="../../resources/testharnessreport.js"></script>
6 <video>
7 <track src="captions-webvtt/tc010-no-timings.vtt" default>
8 </video>
9 <script>
10 async_test(function(t) {
11 var track = document.querySelector("track");
5 12
6 <script src=../media-file.js></script> 13 track.onload = t.step_func_done(function() {
7 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 14 assert_cues_equal(track.track.cues, []);
8 (Please avoid writing new tests using video-test.js) --> 15 });
9 <script src=../video-test.js></script> 16 });
10 <script> 17 </script>
11
12 function trackLoaded()
13 {
14 findMediaElement();
15 var expected =
16 {
17 length : 0,
18 tests:
19 [],
20 };
21 testCues(0, expected);
22
23 endTest();
24 }
25
26 </script>
27 </head>
28 <body>
29 <p>Tests cue without timings are ignored.</p>
30 <video>
31 <track src="captions-webvtt/tc010-no-timings.vtt" onload="trackLoade d()" default>
32 </video>
33 </body>
34 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698