5 testRunner
.dumpAsText();
6 var select
= document
.getElementById("select");
7 var rect
= select
.getBoundingClientRect();
8 var x
= rect
.left
+ 10;
11 if (window
.eventSender
) {
12 eventSender
.mouseMoveTo(x
, y
);
13 eventSender
.mouseDown(0);
16 function reportFocus()
18 document
.getElementById("result").innerHTML
= "PASS";
21 <body onload=
"test()">
22 <p>The select below should be focused because we dispatched a mouse down event to it.
</p>
23 <p id=
"result">FAIL
</p>
24 <select id=
"select" size=
"4" onfocus=
"reportFocus()">
27 <option>three
</option>