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

Side by Side 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, 10 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Popup Blocked Simulated Click on Anchor</title>
5 <script>
6 console.log("navigate");
7 function test() {
8 document.querySelector("a").focus();
9 }
10 </script>
11 </head>
12 <body onload="test()">
13 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 fail s.
14 <a href="data:text/html,<title>PASS</title>you should see this message when pres sing the Ctrl+Enter/Cmd+Enter Keys"></a>
15 </body>
16 </html>
OLDNEW
« 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