| 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 <script> | 8 <script> |
| 7 var fragment; | 9 var fragment; |
| 8 function startTest() | 10 function startTest() |
| 9 { | 11 { |
| 10 var emptyCue = new VTTCue(0, 0, ""); | 12 var emptyCue = new VTTCue(0, 0, ""); |
| 11 fragment = emptyCue.getCueAsHTML(); | 13 fragment = emptyCue.getCueAsHTML(); |
| 12 | 14 |
| 13 consoleWrite("** The getCueAsHTML() method should return a document
fragment **"); | 15 consoleWrite("** The getCueAsHTML() method should return a document
fragment **"); |
| 14 testExpected("fragment", null, "!="); | 16 testExpected("fragment", null, "!="); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 25 endTest(); | 27 endTest(); |
| 26 } | 28 } |
| 27 </script> | 29 </script> |
| 28 </head> | 30 </head> |
| 29 | 31 |
| 30 <body onload="startTest()"> | 32 <body onload="startTest()"> |
| 31 <p>Tests that having an empty cue does not crash when calling getCueAsHT
ML().</p> | 33 <p>Tests that having an empty cue does not crash when calling getCueAsHT
ML().</p> |
| 32 <video controls /> | 34 <video controls /> |
| 33 </body> | 35 </body> |
| 34 </html> | 36 </html> |
| OLD | NEW |