4 <script src="../js/resources/js-test-pre.js"></script>
7 <p id="description"></p>
8 <div id="test-container">
9 <div id=d0 style='border:2px solid red'>
10 <div onmouseout='testFailed("mouseout")' onmouseover='document.getElementById("d0").innerHTML ="you should see PASS below"'>
11 <div onmouseout='testFailed("mouseout")'>
12 <span id=target1 onmouseout='testPassed("mouseout")' >
18 <div id=d1 style='border:2px solid blue'>
19 <div id=target2 onmouseout='testPassed("mouseout")' onmouseover='document.getElementById("d1").innerHTML ="you should see PASS below"' >
24 <div id="console"></div>
26 description("Test that if node dies under mouse it receives mouseout event but that the event does not propagate.");
28 if (window.layoutTestController)
29 layoutTestController.dumpAsText();
31 if (window.eventSender) {
32 var el = document.getElementById('target1');
33 var x = el.offsetLeft+3;
34 var y = el.offsetTop+3;
35 eventSender.mouseMoveTo(x, y);
36 eventSender.mouseMoveTo(x+1, y+1);
37 el = document.getElementById('target2');
40 eventSender.mouseMoveTo(x, y);
41 eventSender.mouseMoveTo(x+1, y+1);
43 var testContainer = document.getElementById("test-container");
45 document.body.removeChild(testContainer);
48 <script src="../../fast/js/resources/js-test-post.js"></script>