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

Unified Diff: chrome/test/data/ssl/page_with_blank_target.html

Issue 196115: This CL adds a test to insure we are not regressing on http://crbug.com/19941... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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/common/notification_type.h ('k') | chrome/test/ui_test_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/ssl/page_with_blank_target.html
===================================================================
--- chrome/test/data/ssl/page_with_blank_target.html (revision 0)
+++ chrome/test/data/ssl/page_with_blank_target.html (revision 0)
@@ -0,0 +1,24 @@
+<html>
+
+ <head><title>This is a simple test page</title>
+ <script>
+ function simulateClick(target) {
+ var evt = document.createEvent("MouseEvents");
+ evt.initMouseEvent("click", true, true, window,
+ 0, 0, 0, 0, 0, false, false,
+ false, false, 0, null);
+
+ return target.dispatchEvent(evt);
+ }
+
+ function navigateInNewTab() {
+ return simulateClick(document.getElementById("bad_link"));
+ }
+
+ </script>
+ </head>
+
+<a href="https://127.0.0.1:9666/files/ssl/google.html" id="bad_link" target="_blank">This is a bad link</a>
+
+</html>
+
« no previous file with comments | « chrome/common/notification_type.h ('k') | chrome/test/ui_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698