2 <title>Focus crash
</title>
5 To run this test manually, click the
"Crash me" button.
7 <iframe id='testframe'
style=
"width: 100%; height:200px;" src=
"../resources/iframebody.html"></iframe>
9 <input id='testbutton'
type=
"button" value=
"Crash me" onclick=
"crash()">
10 <ul id=
"console"></ul>
15 document
.getElementById('testframe').contentWindow
.document
.body
.focus();
16 if (window
.testRunner
)
17 testRunner
.dumpAsText();
20 var button
= document
.getElementById('testbutton');
21 eventSender
.mouseMoveTo(button
.offsetLeft
+ 10, button
.offsetTop
+ 5)
22 eventSender
.mouseDown();
23 eventSender
.mouseUp();
29 var focuselem
= document
.getElementById('testframe').contentWindow
;
30 var elem
= document
.getElementById('container');
31 elem
.style
.display
= 'none';
37 var li
= document
.createElement("li");
38 li
.appendChild(document
.createTextNode(str
));
39 var console
= document
.getElementById("console");
40 console
.appendChild(li
);