Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / mouseout-dead-subframe.html
blob146beb986cdf0617acec041de9c0054b45beaf3f
1 <script>
2 if (window.testRunner)
3 testRunner.waitUntilDone();
5 function mouseOver()
7 var trouble = document.createElement('iframe');
8 trouble.id='trouble';
9 trouble.src="data:text/html,... then into this iframe to crash."
10 document.getElementById("parentNode").appendChild(trouble);
13 function mouseOut()
15 var trouble = document.getElementById('trouble');
16 trouble.parentNode.removeChild(trouble);
19 function runTest()
21 var e1 = document.getElementById("parentNode");
22 var x = e1.offsetLeft+3;
23 var y = e1.offsetTop+3;
24 eventSender.mouseMoveTo(x, y);
25 var e2 = document.getElementById('trouble');
26 x = e2.offsetLeft+3;
27 y = e2.offsetTop+3;
28 eventSender.mouseMoveTo(x, y);
30 printResults("PASSED");
33 function printResults(result)
35 var console = document.getElementById("results");
36 console.innerHTML = result;
37 console.style.display = "block";
38 document.getElementById("parentNode").style.display = "none";
39 testRunner.dumpAsText();
40 testRunner.notifyDone();
43 </script>
45 <body onload="runTest()">
46 <div id="parentNode" onmouseout="mouseOut()" onmouseover="mouseOver()">
47 Mouseover this text...
48 </div>
49 <br>
50 <div id="results" style="display:none;"></div>
51 </body>