OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <div>Test passes if it does not induce a crash.</div> | 3 <div>Test passes if it does not induce a crash.</div> |
4 <script src=../../../../../resources/testharness.js></script> | 4 <script src=../../../../../resources/testharness.js></script> |
5 <script> | 5 <script> |
6 if (window.testRunner) | 6 if (window.testRunner) |
7 testRunner.dumpAsText(); | 7 testRunner.dumpAsText(); |
8 | 8 |
9 test(function(){ | 9 test(function(){ |
10 var c1 = new TextTrackCue(0, 1, '<c>x\0'); | 10 var c1 = new VTTCue(0, 1, '<c>x\0'); |
11 window.frag = c1.getCueAsHTML(); | 11 window.frag = c1.getCueAsHTML(); |
12 }, document.title+', creating the cue'); | 12 }, document.title+', creating the cue'); |
13 | 13 |
14 test(function(){ | 14 test(function(){ |
15 assert_false(frag.childNodes[0].hasChildNodes(), 'hasChildNodes()'); | 15 assert_false(frag.childNodes[0].hasChildNodes(), 'hasChildNodes()'); |
16 }, document.title+', >'); | 16 }, document.title+', >'); |
17 | 17 |
18 test(function(){}, document.title+', '); | 18 test(function(){}, document.title+', '); |
19 test(function(){}, document.title+', x\\0'); | 19 test(function(){}, document.title+', x\\0'); |
20 </script> | 20 </script> |
21 </html> | 21 </html> |
OLD | NEW |