OLD | NEW |
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 <script src=../video-test.js></script> | 7 <script src=../video-test.js></script> |
8 <script> | 8 <script> |
9 | 9 |
10 var cues; | 10 var cues; |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 consoleWrite("** Test initial values."); | 23 consoleWrite("** Test initial values."); |
24 run("textCue = cues.getCueById('1')"); | 24 run("textCue = cues.getCueById('1')"); |
25 | 25 |
26 testExpected("textCue.startTime", 0); | 26 testExpected("textCue.startTime", 0); |
27 testExpected("textCue.endTime", 1.0); | 27 testExpected("textCue.endTime", 1.0); |
28 testExpected("textCue.pauseOnExit", false); | 28 testExpected("textCue.pauseOnExit", false); |
29 testExpected("textCue.vertical", ""); | 29 testExpected("textCue.vertical", ""); |
30 testExpected("textCue.snapToLines", true); | 30 testExpected("textCue.snapToLines", true); |
31 testExpected("textCue.line", "auto"); | 31 testExpected("textCue.line", "auto"); |
32 testExpected("textCue.position", 50); | 32 testExpected("textCue.position", "auto"); |
33 testExpected("textCue.size", 100); | 33 testExpected("textCue.size", 100); |
34 testExpected("textCue.align", "middle"); | 34 testExpected("textCue.align", "middle"); |
35 | 35 |
36 consoleWrite("<br>** Modify cue values."); | 36 consoleWrite("<br>** Modify cue values."); |
37 | 37 |
38 run("textCue.startTime = 1.1"); | 38 run("textCue.startTime = 1.1"); |
39 testExpected("textCue.startTime", 1.1); | 39 testExpected("textCue.startTime", 1.1); |
40 | 40 |
41 consoleWrite(""); | 41 consoleWrite(""); |
42 run("textCue.endTime = 3.9"); | 42 run("textCue.endTime = 3.9"); |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 | 101 |
102 </script> | 102 </script> |
103 </head> | 103 </head> |
104 <body> | 104 <body> |
105 <p>Tests modifying attributes of a VTTCue</p> | 105 <p>Tests modifying attributes of a VTTCue</p> |
106 <video controls> | 106 <video controls> |
107 <track id="captions" src="captions-webvtt/captions.vtt" kind="captio
ns" onload="trackLoaded()" default> | 107 <track id="captions" src="captions-webvtt/captions.vtt" kind="captio
ns" onload="trackLoaded()" default> |
108 </video> | 108 </video> |
109 </body> | 109 </body> |
110 </html> | 110 </html> |
OLD | NEW |