OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <title>TextTrackCue constructor</title> |
| 5 <script src="../../resources/testharness.js"></script> |
| 6 <script src="../../resources/testharnessreport.js"></script> |
| 7 </head> |
| 8 <body> |
| 9 <div id="log"></div> |
| 10 <script> |
| 11 test(function() |
| 12 { |
| 13 assert_not_equals(TextTrackCue, VTTCue); |
| 14 }, "TextTrackCue and VTTCue are separate interfaces"); |
| 15 test(function() |
| 16 { |
| 17 var cue = new TextTrackCue(0, 0, ""); |
| 18 assert_true(cue instanceof TextTrackCue); |
| 19 assert_true(cue instanceof VTTCue); |
| 20 }, "TextTrackCue constructor returns a VTTCue"); |
| 21 </script> |
| 22 </body> |
| 23 </html> |
OLD | NEW |