Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / mouseup-outside-button.html
blobf3118a8070eb9a822978f575e66a0fc4c852b3a4
1 <p>This test verifies that a button that receives a mouse down event does not receive
2 a corresponding mouse up event when the mouse up happens outside the button.
3 </p>
4 <p>If the test passes, you'll see a PASS message below.
5 </p>
7 <p>To run this test in Safari:
8 <ol>
9 <li>Mouse down inside the button.</li>
10 <li>Move the mouse outside the button.</li>
11 <li>Mouse up.</li>
12 </ol>
13 </p>
14 <hr>
15 <input type="button" value="button!" id="button">
16 <pre id="log">PASS: mouse up event did not fire</pre>
18 <script>
19 function main()
21 document.getElementById('button').addEventListener("mouseup", button_mouseUp, false);
23 if (window.testRunner)
24 testRunner.dumpAsText();
26 if (window.eventSender) {
27 eventSender.mouseMoveTo(40, 20); // in button
28 eventSender.mouseDown();
29 eventSender.mouseMoveTo(40, 200); // outside button
30 eventSender.mouseUp();
34 function button_mouseUp()
36 document.getElementById('log').innerHTML = "FAIL: mouseup event fired\n";
39 main();
40 </script>