| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <title>VTTCue.snapToLines</title> | 2 <title>VTTCue.snapToLines</title> |
| 3 <link rel="help" href="https://w3c.github.io/webvtt/#dom-vttcue-snaptolines"> |
| 3 <script src=/resources/testharness.js></script> | 4 <script src=/resources/testharness.js></script> |
| 4 <script src=/resources/testharnessreport.js></script> | 5 <script src=/resources/testharnessreport.js></script> |
| 5 <div id=log></div> | 6 <div id=log></div> |
| 6 <script> | 7 <script> |
| 7 setup(function(){ | 8 setup(function(){ |
| 8 window.video = document.createElement('video'); | 9 window.video = document.createElement('video'); |
| 9 window.t1 = video.addTextTrack('subtitles'); | 10 window.t1 = video.addTextTrack('subtitles'); |
| 10 document.body.appendChild(video); | 11 document.body.appendChild(video); |
| 11 }); | 12 }); |
| 12 test(function(){ | 13 test(function(){ |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 t.onerror = this.step_func(function() { | 89 t.onerror = this.step_func(function() { |
| 89 assert_unreached('got error event'); | 90 assert_unreached('got error event'); |
| 90 }); | 91 }); |
| 91 t.src = 'data:text/vtt,'+encodeURIComponent('WEBVTT\n\n00:00:00.000 --> 00:0
0:00.001\ntest\n\n'+ | 92 t.src = 'data:text/vtt,'+encodeURIComponent('WEBVTT\n\n00:00:00.000 --> 00:0
0:00.001\ntest\n\n'+ |
| 92 '00:00:00.000 --> 00:00:00.001 l
ine:0\ntest\n\n'+ | 93 '00:00:00.000 --> 00:00:00.001 l
ine:0\ntest\n\n'+ |
| 93 '00:00:00.000 --> 00:00:00.001 l
ine:0%\ntest'); | 94 '00:00:00.000 --> 00:00:00.001 l
ine:0%\ntest'); |
| 94 t.track.mode = 'showing'; | 95 t.track.mode = 'showing'; |
| 95 video.appendChild(t); | 96 video.appendChild(t); |
| 96 }); | 97 }); |
| 97 </script> | 98 </script> |
| OLD | NEW |