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