OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src=../media-file.js></script> | 4 <script src=../media-file.js></script> |
| 5 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 |
| 6 (Please avoid writing new tests using video-test.js) --> |
5 <script src=../video-test.js></script> | 7 <script src=../video-test.js></script> |
6 </head> | 8 </head> |
7 <body> | 9 <body> |
8 <div id=video_container></div> | 10 <div id=video_container></div> |
9 <script> | 11 <script> |
10 var mediaFile = findMediaFile("video", "../content/test"); | 12 var mediaFile = findMediaFile("video", "../content/test"); |
11 document.getElementById('video_container').innerHTML = "<video src='
" + mediaFile + "' controls ><track kind='captions' src='captions-webvtt/simple-
captions.vtt' default ></video>"; | 13 document.getElementById('video_container').innerHTML = "<video src='
" + mediaFile + "' controls ><track kind='captions' src='captions-webvtt/simple-
captions.vtt' default ></video>"; |
12 </script> | 14 </script> |
13 <div> | 15 <div> |
14 This test that removing a track element before it has been processed
doesn't crash (https://bugs.webkit.org/show_bug.cgi?id=85095). | 16 This test that removing a track element before it has been processed
doesn't crash (https://bugs.webkit.org/show_bug.cgi?id=85095). |
15 <p>If this test does not crash, it passes.</p> | 17 <p>If this test does not crash, it passes.</p> |
16 </div> | 18 </div> |
17 <script> | 19 <script> |
18 endTest(); | 20 endTest(); |
19 </script> | 21 </script> |
20 </body> | 22 </body> |
21 </html> | 23 </html> |
OLD | NEW |