1 <p>This test verifies that a document that receives a mouse down event receives
2 a corresponding mouse up event when the mouse up happens outside the window.
4 <p>If the test passes, you'll see a PASS message below.
7 <p>To run this test in Safari:
9 <li>Mouse down inside the document.</li>
10 <li>Move the mouse outside the window.</li>
15 <pre id="log">FAIL: mouse up event did not fire</pre>
20 document.addEventListener("mouseup", document_mouseUp, false);
22 if (window.testRunner)
23 testRunner.dumpAsText();
25 if (window.eventSender) {
26 eventSender.mouseMoveTo(20, 20); // in window
27 eventSender.mouseDown();
28 eventSender.mouseMoveTo(4000, 215); // outside window
29 eventSender.mouseUp();
33 function document_mouseUp()
35 document.getElementById('log').innerHTML = "PASS: mouseup event fired\n";