4 <p>This test ensures WebKit does not fire click event on a node that has been removed twice in mouseup event.
</p>
5 <div id=
"test"><span id=
"target" onmouseup=
"mouseup()" onclick=
"test.innerHTML = 'FAIL';">click here
</span></div>
8 var test
= document
.getElementById('test');
9 var target
= document
.getElementById('target');
12 test
.appendChild(document
.createTextNode('PASS'));
13 test
.removeChild(target
);
14 test
.appendChild(target
);
15 test
.removeChild(target
);
18 if (window
.testRunner
) {
19 testRunner
.dumpAsText();
20 if (!window
.eventSender
)
21 test
.innerHTML
= 'FAIL - this test requires eventSender';
23 eventSender
.mouseMoveTo(target
.offsetLeft
+ target
.offsetWidth
/ 2, target
.offsetTop
+ target
.offsetHeight
/ 2);
24 eventSender
.mouseDown();
25 eventSender
.leapForward(200);
26 eventSender
.mouseUp();