wpt/css/css-images/gradient/color-stops-parsing.html fails
[WebKit-https.git] / LayoutTests / fast / events / contextmenu-reentrancy-crash.html
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <p>This test verifies that we don't crash when attempting to handle "contextmenu" events in a reentrant manner. This test passes if the green text "PASS" is present after page load.</p>
5 </body>
6 <script>
7 if (window.testRunner)
8     testRunner.dumpAsText();
9
10 function dispatchContextMenuEvent() {
11     document.body.dispatchEvent(new MouseEvent("contextmenu"));
12 }
13
14 document.designMode = "on";
15 document.addEventListener("beforepaste", dispatchContextMenuEvent);
16 dispatchContextMenuEvent();
17 document.writeln("<pre style='color: green'>PASS</pre>");
18 </script>
19 </html>