Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
| 5 | |
| 6 <script src=../media-file.js></script> | |
| 7 <script src=../video-test.js></script> | |
| 8 <script> | |
| 9 var fragment; | |
| 10 function startTest() | |
| 11 { | |
| 12 var emptyCue = new TextTrackCue(0, 0, ""); | |
|
acolwell GONE FROM CHROMIUM
2013/08/05 23:40:32
Should passing null also behave the same way? If s
vcarbune.chromium
2013/08/09 18:47:26
null is converted to the string "null" and further
| |
| 13 fragment = emptyCue.getCueAsHTML(); | |
| 14 | |
| 15 consoleWrite("** The getCueAsHTML() method should return a document fragment **"); | |
| 16 testExpected("fragment", null, "!="); | |
| 17 testExpected("fragment.children.length", 0); | |
| 18 | |
| 19 consoleWrite(""); | |
| 20 consoleWrite("No crash. PASS."); | |
| 21 consoleWrite(""); | |
| 22 | |
| 23 endTest(); | |
| 24 } | |
| 25 </script> | |
| 26 </head> | |
| 27 | |
| 28 <body onload="startTest()"> | |
| 29 <p>Tests that having an empty cue does not crash when calling getCueAsHT ML().</p> | |
| 30 <video controls /> | |
| 31 </body> | |
| 32 </html> | |
| OLD | NEW |