5 Test that a forwarded user gesture can be consumed by any timeout,
8 <button id=
"button" onclick=
"popup()">Click Here
</button>
9 <div id=
"console"></div>
14 var win
= window
.open("about:blank", "window");
16 document
.getElementById("console").innerText
= "FAILED";
18 document
.getElementById("console").innerText
= "PASSED";
19 if (window
.testRunner
)
20 testRunner
.notifyDone();
24 setTimeout(timer1
, 0);
25 setTimeout(timer2
, 10);
28 if (window
.testRunner
) {
29 testRunner
.dumpAsText();
30 testRunner
.setCanOpenWindows();
31 testRunner
.setPopupBlockingEnabled(true);
32 testRunner
.setCloseRemainingWindowsWhenComplete(true);
33 testRunner
.waitUntilDone();
35 var button
= document
.getElementById("button");
37 if (window
.eventSender
) {
38 eventSender
.mouseMoveTo(button
.offsetLeft
+ button
.offsetWidth
/ 2, button
.offsetTop
+ button
.offsetHeight
/ 2);
39 eventSender
.mouseDown();
40 eventSender
.mouseUp();