Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / remove-target-in-mouseup-twice.html
blob26c66cec746305820527750fd0a995902065383c
1 <!DOCTYPE html>
2 <html>
3 <body>
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>
6 <script>
8 var test = document.getElementById('test');
9 var target = document.getElementById('target');
11 function mouseup() {
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';
22 else {
23 eventSender.mouseMoveTo(target.offsetLeft + target.offsetWidth / 2, target.offsetTop + target.offsetHeight / 2);
24 eventSender.mouseDown();
25 eventSender.leapForward(200);
26 eventSender.mouseUp();
30 </script>
31 </body>
32 </html>