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

Side by Side Diff: third_party/WebKit/LayoutTests/media/track/track-default-attribute.html

Issue 1715303002: Add TODOs to convert from video-test.js to testharness.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add bug ref Created 4 years, 10 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 <html>
3 <head> 3 <head>
4 <script src=../media-file.js></script> 4 <script src=../media-file.js></script>
5 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956
6 (Please avoid writing new tests using video-test.js) -->
5 <script src=../video-test.js></script> 7 <script src=../video-test.js></script>
6 <script> 8 <script>
7 9
8 var timer = null; 10 var timer = null;
9 11
10 function trackLoaded() 12 function trackLoaded()
11 { 13 {
12 consoleWrite("EVENT(load)"); 14 consoleWrite("EVENT(load)");
13 testExpected("event.target.readyState", HTMLTrackElement.LOADED) ; 15 testExpected("event.target.readyState", HTMLTrackElement.LOADED) ;
14 testExpected("event.target.id", "default"); 16 testExpected("event.target.id", "default");
(...skipping 10 matching lines...) Expand all
25 </head> 27 </head>
26 <body> 28 <body>
27 <p>Tests that a track with the 'default' attribute loads automatically.< /p> 29 <p>Tests that a track with the 'default' attribute loads automatically.< /p>
28 <video> 30 <video>
29 <track kind="captions" src="captions-webvtt/tc005-default-styles.vtt " onload="trackLoaded()"> 31 <track kind="captions" src="captions-webvtt/tc005-default-styles.vtt " onload="trackLoaded()">
30 <track kind="captions" src="captions-webvtt/tc005-metadata-area.vtt" onload="trackLoaded()"> 32 <track kind="captions" src="captions-webvtt/tc005-metadata-area.vtt" onload="trackLoaded()">
31 <track default kind="captions" src="captions-webvtt/tc004-webvtt-fil e.vtt" onload="trackLoaded()" id="default" > 33 <track default kind="captions" src="captions-webvtt/tc004-webvtt-fil e.vtt" onload="trackLoaded()" id="default" >
32 </video> 34 </video>
33 </body> 35 </body>
34 </html> 36 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698