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

Unified Diff: chrome/test/data/frame_tree/anchor_to_same_site_location.html

Issue 2471663002: ABANDONED CL: CtrlClickShouldEndUpInNewProcess - test for https://crbug.com/23815 (Closed)
Patch Set: One more test - for target="_blank". Created 4 years, 1 month 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/browser_navigator.cc ('k') | content/shell/browser/shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/frame_tree/anchor_to_same_site_location.html
diff --git a/chrome/test/data/frame_tree/anchor_to_same_site_location.html b/chrome/test/data/frame_tree/anchor_to_same_site_location.html
new file mode 100644
index 0000000000000000000000000000000000000000..2bee1a8eefbfdd62bc5720709997f485794c1d4b
--- /dev/null
+++ b/chrome/test/data/frame_tree/anchor_to_same_site_location.html
@@ -0,0 +1,25 @@
+<!doctype html>
+<html>
+<head>
+<script>
+window.name = "main_contents";
+function simulateClick(anchor_name, properties) {
+ var evt = new MouseEvent("click", properties);
+
+ target = document.getElementById(anchor_name);
+ return target.dispatchEvent(evt);
+}
+</script>
+</head>
+<body>
+This page helps testing shift-clicking or ctrl-clicking an anchor/link
+that points to the same site. See also https://crbug.com/238156.
+<hr>
+<a href="/title1.html"
+ id="test-anchor-no-target">Test link to click while holding ctrl key</a>
+<hr>
+<a href="/title1.html"
+ target="_blank"
+ id="test-anchor-with-blank-target">Test link with target="_blank"</a>
+</body>
+</html>
« no previous file with comments | « chrome/browser/ui/browser_navigator.cc ('k') | content/shell/browser/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698