| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <script> | |
| 3 if (window.testRunner) | |
| 4 { | |
| 5 testRunner.dumpAsText(); | |
| 6 testRunner.waitUntilDone(); | |
| 7 } | |
| 8 | |
| 9 function runTest() | |
| 10 { | |
| 11 frame = document.body.appendChild(document.createElement('iframe')); | |
| 12 frame.onload = function() { | |
| 13 frame.onload = null; | |
| 14 container = frame.contentDocument.body.appendChild(frame.contentDocument
.createElement('div')); | |
| 15 otherVideo = container.appendChild(frame.contentDocument.createElementNS
('other', 'video')); | |
| 16 event = frame.contentDocument.createEvent('KeyboardEvents'); | |
| 17 event.initKeyboardEvent('keydown', 1, 1, frame.contentWindow, 'U+0020'); | |
| 18 container.dispatchEvent(event); | |
| 19 | |
| 20 document.body.appendChild(document.createTextNode('PASS, did not crash.'
)); | |
| 21 if (window.testRunner) | |
| 22 testRunner.notifyDone(); | |
| 23 } | |
| 24 | |
| 25 frame.src = 'content/test.mp4'; | |
| 26 } | |
| 27 </script> | |
| 28 <body onload="runTest()"/> | |
| 29 </html> | |
| OLD | NEW |