Use testRunner instead of layoutTestController in fast/doctypes, dom, dynamic, encodi...
[WebKit-https.git] / LayoutTests / fast / events / remove-shadow-host-crash.html
1 <html>
2 <head>
3 <script>
4
5 if (window.testRunner)
6     testRunner.dumpAsText();
7
8 function mouseOver(element)
9 {
10     if (!window.eventSender)
11         return;
12
13     var x = element.offsetLeft + element.offsetWidth / 2;
14     var y = element.offsetTop + element.offsetHeight / 2;
15     eventSender.mouseMoveTo(x, y);
16 }
17
18 function runTest()
19 {
20     var area = document.getElementById('area');
21     mouseOver(area);
22     area.innerHTML = '';
23     mouseOver(document.getElementById('description'));
24 }
25
26 </script>
27 </head>
28 <body onload="runTest()">
29     <p id="description">Ensures that a "mouseout" event, fired on shadow DOM element of a destroyed host element doesn't crash the browser.
30     <p>Passes if doesn't crash.
31     <div id="area" style="width:100px;height:100px">
32         <textarea style="width:100px;height:100px">Foo</textarea>
33     </div>
34 </body>
35 </html>