Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / init-event-null-view.html
bloba353aec710356da9daab70b4bde268bfe9b7e87f
1 <head>
2 <script>
3 function print(message)
5 var paragraph = document.createElement("p");
6 paragraph.appendChild(document.createTextNode(message));
7 document.getElementById("console").appendChild(paragraph);
9 function test()
11 if (window.testRunner)
12 testRunner.dumpAsText();
14 var ev = document.createEvent("MouseEvent");
15 ev.initMouseEvent("click", true, true, null, 1, 1, 1, 1, 1, false, false, false, false, 0, document);
16 print("Successfully created a mouse event object without a view and didn't crash.");
18 </script>
19 </head>
20 <body onload="test()" id="root">
21 <p>This is a regression test for <a href="https://bugs.webkit.org/show_bug.cgi?id=4298">bug 4298</a>. Without the bug fix it causes a crash.</p>
22 <hr>
23 <p><div id=console></div></p>
24 </body>