[Modern Media Controls] Turn media/modern-media-controls/ios-inline-media-controls...
[WebKit-https.git] / LayoutTests / media / video-element-other-namespace-crash.html
1 <html>\r
2 <script>\r
3 if (window.testRunner)\r
4\r
5     testRunner.dumpAsText();\r
6     testRunner.waitUntilDone();\r
7 }\r
8 \r
9 function runTest()\r
10 {\r
11     frame = document.body.appendChild(document.createElement('iframe'));\r
12     frame.onload = function() {\r
13         frame.onload = null;\r
14         container = frame.contentDocument.body.appendChild(frame.contentDocument.createElement('div'));\r
15         otherVideo = container.appendChild(frame.contentDocument.createElementNS('other', 'video'));\r
16         event = frame.contentDocument.createEvent('KeyboardEvents');\r
17         event.initKeyboardEvent('keydown', 1, 1, frame.contentWindow, 'U+0020');\r
18         container.dispatchEvent(event);\r
19         \r
20         document.body.appendChild(document.createTextNode('PASS, did not crash.'));\r
21         if (window.testRunner)\r
22             testRunner.notifyDone();\r
23     }\r
24 \r
25     frame.src = 'content/test.mp4';\r
26 }\r
27 </script>\r
28 <body onload="runTest()"/>\r
29 </html>\r