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