Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4989)

Unified Diff: chrome/test/data/popup_blocker/popup-simulated-click-on-anchor.html

Issue 877513002: Add a test for a simulated click on a link. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/blocked_content/popup_blocker_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « chrome/browser/ui/blocked_content/popup_blocker_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698