- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / test / data / popup_blocker / popup-fake-click-on-anchor2.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Popup Blocked Fake Click on Anchor</title>
5 <script>
6 function test() {
7   document.querySelector("a").dispatchEvent(new MouseEvent("click", {ctrlKey: true, metaKey: true}));
8 }
9 </script>
10 </head>
11 <body onload="test()">
12 If the fake click was not blocked then there will be an warning message displayed in a new tab. Otherwise, the test passes.
13 <a href="data:text/html,<title>Popup Success!</title>you should not see this message if popup blocker is enabled"></a>
14 </body>
15 </html>