Upstream version 5.34.92.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / events / mouseenter-mouseleave-crash.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4     <script src="../../resources/js-test.js"></script>
5     <script>
6         window.jsTestIsAsync = true;
7
8         document.addEventListener('DOMContentLoaded', function () {
9             document.querySelector('#inner3').addEventListener('mouseenter', function () {
10                 document.write("Please don't crash under ASAN.");
11             });
12
13             if (window.testRunner) {
14                 eventSender.mouseMoveTo(1, 1);
15                 debug("// Entering #inner3 (and therefore also #inner2)");
16                 eventSender.mouseMoveTo(170,140);
17             }
18
19             setTimeout(finishJSTest, 0);
20         });
21
22     </script>
23
24     <style>
25         #outer {
26             background: blue;
27             height: 100px;
28             left: 100px;
29             position: absolute;
30             top: 100px;
31             width: 100px;
32         }
33
34         #inner1 {
35             background: red;
36             height: 50px;
37             left: 20px;
38             position: absolute;
39             top: 20px;
40             width: 50px;
41         }
42
43         #inner2 {
44             background: yellow;
45             height: 20px;
46             left: 60px;
47             position: absolute;
48             top: 30px;
49             width: 20px;
50         }
51
52         #inner3 {
53             background-color: green;
54             height: 10px;
55             margin: 5px;
56             width: 10px;
57         }
58     </style>
59 </head>
60 <body>
61     <div id="outer">
62         <div id="inner1"></div>
63         <div id="inner2">
64             <div id="inner3"></div>
65         </div>
66     </div>
67 </body>
68 </html>