| Index: chrome/test/data/popup_blocker/popup-fake-click-on-anchor.html
|
| diff --git a/chrome/test/data/popup_blocker/popup-fake-click-on-anchor.html b/chrome/test/data/popup_blocker/popup-fake-click-on-anchor.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c9098fb7f3dd8cf262a0c9c2196be998bc7ab531
|
| --- /dev/null
|
| +++ b/chrome/test/data/popup_blocker/popup-fake-click-on-anchor.html
|
| @@ -0,0 +1,15 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<head>
|
| +<title>Popup Blocked Fake Click on Anchor</title>
|
| +<script>
|
| +function test() {
|
| + document.querySelector("a").dispatchEvent(new MouseEvent("click", {ctrlKey: true, metaKey: true}));
|
| +}
|
| +</script>
|
| +</head>
|
| +<body onload="test()">
|
| +If the fake click was not blocked then there will be an warning message displayed in a new tab. Otherwise, the test passes.
|
| +<a href="data:text/html,<title>Popup Success!</title>you should not see this message if popup blocker is enabled" target="tab"></a>
|
| +</body>
|
| +</html>
|
|
|