5 if (window
.testRunner
) {
6 testRunner
.dumpAsText();
7 testRunner
.waitUntilDone();
11 if (window
.eventSender
) {
12 eventSender
.mouseMoveTo(52, 52);
13 eventSender
.mouseDown();
14 eventSender
.mouseUp();
16 window
.setTimeout('finish()', 0);
21 if (window
.testRunner
)
22 testRunner
.notifyDone();
25 window
.onclick = function(e
) { log("Window.onClick fired. Test Failed."); };
28 document
.getElementById("result").innerHTML
= text
;
33 <body onload=
"test()">
34 Test that stopPropagation() will not allow window events to bubble.
35 <div id=
"d1" style=
"position: absolute; top: 50; left: 50; border: solid thin" onclick=
"log('stopPropagation called. Test Passed.'); event.stopPropagation();">
36 Clicking on this should not fire window.onclick. This matches our old behavior and Firefox behavior.
39 <div id=
"result" style=
"position: absolute; top: 100; left: 50;"><br></div>