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

Side by Side Diff: third_party/WebKit/LayoutTests/media/track/track-mode-not-changed-by-new-track.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 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5 5
6 <script src=../media-file.js></script> 6 <script src=../media-file.js></script>
7 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956
8 (Please avoid writing new tests using video-test.js) -->
7 <script src=../video-test.js></script> 9 <script src=../video-test.js></script>
8 <script> 10 <script>
9 11
10 function trackAdded() 12 function trackAdded()
11 { 13 {
12 consoleWrite("EVENT(" + event.type + ")"); 14 consoleWrite("EVENT(" + event.type + ")");
13 consoleWrite("<i>**check that metadata track state has not chang ed<" + "/i>"); 15 consoleWrite("<i>**check that metadata track state has not chang ed<" + "/i>");
14 testExpected("track1.readyState", HTMLTrackElement.LOADED); 16 testExpected("track1.readyState", HTMLTrackElement.LOADED);
15 testExpected("track1.track.mode", "hidden"); 17 testExpected("track1.track.mode", "hidden");
16 consoleWrite("<i>**and that the caption track state has not chan ged<" + "/i>"); 18 consoleWrite("<i>**and that the caption track state has not chan ged<" + "/i>");
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 testExpected("track1.track.cues", null); 76 testExpected("track1.track.cues", null);
75 run("track1.track.mode = 'hidden'"); 77 run("track1.track.mode = 'hidden'");
76 consoleWrite(""); 78 consoleWrite("");
77 } 79 }
78 80
79 function start() 81 function start()
80 { 82 {
81 consoleWrite("<br>EVENT(load) -- &lt;body&gt;"); 83 consoleWrite("<br>EVENT(load) -- &lt;body&gt;");
82 findMediaElement(); 84 findMediaElement();
83 85
84 track1 = document.querySelectorAll('track')[0]; 86 track1 = document.querySelectorAll('track')[0];
85 testExpected("track1.readyState", HTMLTrackElement.NONE); 87 testExpected("track1.readyState", HTMLTrackElement.NONE);
86 testExpected("track1.track.mode", "disabled"); 88 testExpected("track1.track.mode", "disabled");
87 89
88 video.src = findMediaFile("video", "../content/test"); 90 video.src = findMediaFile("video", "../content/test");
89 consoleWrite(""); 91 consoleWrite("");
90 } 92 }
91 </script> 93 </script>
92 </head> 94 </head>
93 95
94 <body onload="start()"> 96 <body onload="start()">
95 <p>Tests that a track appended after the initial track configuration doe s not change other tracks.</p> 97 <p>Tests that a track appended after the initial track configuration doe s not change other tracks.</p>
96 <video oncanplaythrough="canplaythrough()" > 98 <video oncanplaythrough="canplaythrough()" >
97 <track kind="metadata" src="captions-webvtt/metadata.vtt" onload="me tadataTrackLoaded()"> 99 <track kind="metadata" src="captions-webvtt/metadata.vtt" onload="me tadataTrackLoaded()">
98 </video> 100 </video>
99 </body> 101 </body>
100 </html> 102 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698