<html>
<head>
<script>
addEventListener("mouseout", function(event){ 
    if (event.clientX < 0 && event.clientY < 0)
        document.getElementById("target").innerHTML = "PASS: Received mouseout event.";
}, true);

</script>
</head>
<body>
This test ensures that mouse out events are sent to the window.<br />
<div id="target">
FAIL: No mouseout was sent.
</div>
<script>
if (window.testRunner)
    testRunner.dumpAsText();
if (window.eventSender) {
    // Initial move on windows is used to force the webview to 
    // initialise the windows mouse event tracker. 
    eventSender.mouseMoveTo(5, 5);
    eventSender.mouseMoveTo(-5, -5);
}
</script>
</body>
</html>
