Index: chrome/test/data/popup_blocker/popup-simulated-click-on-anchor.html |
diff --git a/chrome/test/data/popup_blocker/popup-simulated-click-on-anchor.html b/chrome/test/data/popup_blocker/popup-simulated-click-on-anchor.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..163099cc5be3da08ff79063391bd4f67d4dd0a10 |
--- /dev/null |
+++ b/chrome/test/data/popup_blocker/popup-simulated-click-on-anchor.html |
@@ -0,0 +1,16 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+<title>Popup Blocked Simulated Click on Anchor</title> |
+<script> |
+console.log("navigate"); |
+function test() { |
+ document.querySelector("a").focus(); |
+} |
+</script> |
+</head> |
+<body onload="test()"> |
+If the click is simulated by the Ctrl+Enter/Cmd+Enter Keys then there will be an pass message displayed in a new tab on the background. Otherwise, the test fails. |
+<a href="data:text/html,<title>PASS</title>you should see this message when pressing the Ctrl+Enter/Cmd+Enter Keys"></a> |
+</body> |
+</html> |