OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| 5 |
| 6 <script src=../media-file.js></script> |
| 7 <script src=../video-test.js></script> |
| 8 <script> |
| 9 |
| 10 numberOfTrackTests = 1; |
| 11 |
| 12 function trackLoaded() |
| 13 { |
| 14 numberOfTracksLoaded++; |
| 15 if (numberOfTracksLoaded == numberOfTrackTests) { |
| 16 testTrack0(); |
| 17 } |
| 18 } |
| 19 |
| 20 function testTrack0() |
| 21 { |
| 22 findMediaElement(); |
| 23 var expected = |
| 24 { |
| 25 length: 2, |
| 26 tests: |
| 27 [ |
| 28 { |
| 29 property: "text", |
| 30 values: |
| 31 [ |
| 32 'First', |
| 33 'Second', |
| 34 ], |
| 35 }, |
| 36 ], |
| 37 }; |
| 38 testCues(0, expected); |
| 39 |
| 40 allTestsEnded(); |
| 41 } |
| 42 </script> |
| 43 </head> |
| 44 <body onload="enableAllTextTracks()"> |
| 45 <p>Tests that an empty line after an identifier line discards the current
cue and restarts the cue loop.</p> |
| 46 <video> |
| 47 <track src="captions-webvtt/tc030-interspersed-non-cue.vtt" onload="
trackLoaded()"> |
| 48 </video> |
| 49 </body> |
| 50 </html> |
OLD | NEW |