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

Side by Side Diff: third_party/WebKit/LayoutTests/media/track/track-cue-mutable.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 var cues; 12 var cues;
11 13
12 function logSpecURL(url, description) 14 function logSpecURL(url, description)
13 { 15 {
14 consoleWrite("<br><i>" + description + "</i>"); 16 consoleWrite("<br><i>" + description + "</i>");
15 consoleWrite("<a href=" + url + ">" + url + "<" + "/a>"); 17 consoleWrite("<a href=" + url + ">" + url + "<" + "/a>");
16 } 18 }
17 19
18 function trackLoaded() 20 function trackLoaded()
19 { 21 {
20 track = document.getElementById('captions'); 22 track = document.getElementById('captions');
21 cues = track.track.cues; 23 cues = track.track.cues;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 run("textCue.line = -2"); 69 run("textCue.line = -2");
68 testExpected("textCue.line", -2); 70 testExpected("textCue.line", -2);
69 run("textCue.line = 102"); 71 run("textCue.line = 102");
70 testExpected("textCue.line", 102); 72 testExpected("textCue.line", 102);
71 run("textCue.snapToLines = true"); 73 run("textCue.snapToLines = true");
72 run("textCue.line = -2"); 74 run("textCue.line = -2");
73 testExpected("textCue.line", -2); 75 testExpected("textCue.line", -2);
74 run("textCue.line = 102"); 76 run("textCue.line = 102");
75 testExpected("textCue.line", 102); 77 testExpected("textCue.line", 102);
76 78
77 logSpecURL("http://www.whatwg.org/specs/web-apps/current-work/mu ltipage/the-video-element.html#dom-texttrackcue-line", 79 logSpecURL("http://www.whatwg.org/specs/web-apps/current-work/mu ltipage/the-video-element.html#dom-texttrackcue-line",
78 "On setting, if the new value is negative or greater than 100, then throw an IndexSizeError exception. Otherwise, set the text track cue text position to the new value."); 80 "On setting, if the new value is negative or greater than 100, then throw an IndexSizeError exception. Otherwise, set the text track cue text position to the new value.");
79 testDOMException("textCue.position = -200", "DOMException.INDEX_ SIZE_ERR"); 81 testDOMException("textCue.position = -200", "DOMException.INDEX_ SIZE_ERR");
80 testDOMException("textCue.position = 110", "DOMException.INDEX_S IZE_ERR"); 82 testDOMException("textCue.position = 110", "DOMException.INDEX_S IZE_ERR");
81 run("textCue.position = 11"); 83 run("textCue.position = 11");
82 testExpected("textCue.position", 11); 84 testExpected("textCue.position", 11);
83 85
84 logSpecURL("http://www.whatwg.org/specs/web-apps/current-work/mu ltipage/the-video-element.html#dom-texttrackcue-size", 86 logSpecURL("http://www.whatwg.org/specs/web-apps/current-work/mu ltipage/the-video-element.html#dom-texttrackcue-size",
85 "On setting, if the new value is negative or greater than 100, then throw an IndexSizeError exception. Otherwise, set the text track cue size to the new value."); 87 "On setting, if the new value is negative or greater than 100, then throw an IndexSizeError exception. Otherwise, set the text track cue size to the new value.");
86 testDOMException("textCue.size = -200", "DOMException.INDEX_SIZE _ERR"); 88 testDOMException("textCue.size = -200", "DOMException.INDEX_SIZE _ERR");
87 testDOMException("textCue.size = 110", "DOMException.INDEX_SIZE_ ERR"); 89 testDOMException("textCue.size = 110", "DOMException.INDEX_SIZE_ ERR");
(...skipping 13 matching lines...) Expand all
101 103
102 </script> 104 </script>
103 </head> 105 </head>
104 <body> 106 <body>
105 <p>Tests modifying attributes of a VTTCue</p> 107 <p>Tests modifying attributes of a VTTCue</p>
106 <video controls> 108 <video controls>
107 <track id="captions" src="captions-webvtt/captions.vtt" kind="captio ns" onload="trackLoaded()" default> 109 <track id="captions" src="captions-webvtt/captions.vtt" kind="captio ns" onload="trackLoaded()" default>
108 </video> 110 </video>
109 </body> 111 </body>
110 </html> 112 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698