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