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

Side by Side Diff: content/test/data/simple_links.html

Issue 868313004: Revert "Revert of PlzNavigate: Add a browser test for basic navigations" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Nasko's comments 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 | « content/renderer/render_frame_impl.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 <html>
2
3 <head><title>Simple links</title>
4 <script>
5 function simulateClick(target) {
6 var evt = document.createEvent("MouseEvents");
7 evt.initMouseEvent("click", true, true, window,
8 0, 0, 0, 0, 0, false, false,
9 false, false, 0, null);
10
11 return target.dispatchEvent(evt);
12 }
13
14 function setPortNumber(portNumber) {
15 var link = document.getElementById("cross_site_link");
16 link.setAttribute("href", "http://foo.com:" + portNumber + "/title2.html");
17 return true;
18 }
19
20 function clickSameSiteLink() {
21 return simulateClick(document.getElementById("same_site_link"));
22 }
23
24 function clickCrossSiteLink() {
25 return simulateClick(document.getElementById("cross_site_link"));
26 }
27 </script>
28 </head>
29
30 <a href="title2.html" id="same_site_link">same-site</a><br>
31 <a href="http://foo.com/title2.html" id="cross_site_link">cross-site</a><br>
32
33 </html>
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698