6 testRunner
.dumpAsText();
8 function clickOn(element
)
10 if (!window
.eventSender
)
13 var x
= element
.offsetLeft
+ element
.offsetWidth
/ 2;
14 var y
= element
.offsetTop
+ element
.offsetHeight
/ 2;
15 eventSender
.mouseMoveTo(x
, y
);
16 eventSender
.mouseDown();
17 eventSender
.mouseUp();
22 clickOn(document
.getElementsByTagName('input')[0]);
27 <body onload=
"runTest()">
28 <p>Click on the search box. This test passes if does not crash.
</p>
29 <input type=
"search" onclick=
"this.style.display = 'none';">