RenderIFrame should display its name correctly in DRT output.
[WebKit-https.git] / LayoutTests / plugins / change-widget-and-click-crash.html
1 <html>\r
2 <script>\r
3 function clickElement(element) {\r
4     if (window.eventSender) {\r
5         var centerX = element.offsetLeft + element.offsetWidth / 2;\r
6         var centerY = element.offsetTop + element.offsetHeight / 2;\r
7         eventSender.mouseMoveTo(centerX, centerY);\r
8         eventSender.mouseDown();\r
9     }\r
10 }\r
11 \r
12 function crash() {\r
13     var x = document.getElementById('x');\r
14     x.setAttribute('data', x.data);\r
15     clickElement(x);\r
16     document.body.innerHTML = "PASS";\r
17 \r
18     if (window.testRunner)\r
19         testRunner.notifyDone();\r
20 }\r
21 \r
22 function load() {\r
23     if (window.testRunner) {\r
24         testRunner.dumpAsText();\r
25         testRunner.waitUntilDone();\r
26     }\r
27     setTimeout(crash, 0);\r
28 }\r
29 </script>\r
30 <body onload="load()">\r
31     <object id="x" data="x" border="1" type="application/x-webkit-test-netscape">\r
32         <param name="wmode" value="transparent">\r
33     </object>\r
34 </body>\r
35 </html>\r