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

Side by Side Diff: chrome/test/data/prerender/prerender_loader.html

Issue 9623018: Prerendered pages are swapped in at browser::Navigate time. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <title>Preloader</title> 3 <title>Preloader</title>
4 4
5 <script> 5 <script>
6 function Click() { 6 function Click() {
7 var eventObject = document.createEvent('MouseEvents'); 7 var eventObject = document.createEvent('MouseEvents');
8 eventObject.initMouseEvent('click'); 8 eventObject.initMouseEvent('click');
9 document.getElementById('toClick').dispatchEvent(eventObject); 9 document.getElementById('toClick').dispatchEvent(eventObject);
10 } 10 }
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 function MetaShiftClick() { 50 function MetaShiftClick() {
51 var eventObject = document.createEvent('MouseEvents'); 51 var eventObject = document.createEvent('MouseEvents');
52 eventObject.initMouseEvent('click', true, true, window, 52 eventObject.initMouseEvent('click', true, true, window,
53 1, 0, 0, 0, 0, 53 1, 0, 0, 0, 0,
54 false, false, true, true, 0, null); 54 false, false, true, true, 0, null);
55 document.getElementById('toClick').dispatchEvent(eventObject); 55 document.getElementById('toClick').dispatchEvent(eventObject);
56 } 56 }
57 57
58 function WindowOpen() { 58 function WindowOpen() {
59 window.open('REPLACE_WITH_PRERENDER_URL'); 59 window.open('REPLACE_WITH_DESTINATION_URL');
60 } 60 }
61 </script> 61 </script>
62 62
63 </head> 63 </head>
64 <body> 64 <body>
65 <script> 65 <script>
66 document.write('<link rel="prerender" href="REPLACE_WITH_PRERENDER_URL"/>'); 66 document.write('<link rel="prerender" href="REPLACE_WITH_PRERENDER_URL"/>');
67 </script> 67 </script>
68 <a target="_blank" id="toClickTarget" 68 <a target="_blank" id="toClickTarget"
69 href="REPLACE_WITH_PRERENDER_URL">Link To click in new window</a> 69 href="REPLACE_WITH_DESTINATION_URL">Link To click in new window</a>
70 <a id="toClick" href="REPLACE_WITH_PRERENDER_URL">Link to click</a> 70 <a id="toClick" href="REPLACE_WITH_DESTINATION_URL">Link to click</a>
71 </body> 71 </body>
72 </html> 72 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698