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

Side by Side Diff: ios/testing/data/http_server_files/window_open.html

Issue 2914193003: Automated test case for crbug.com/687863. (Closed)
Patch Set: Created 3 years, 6 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 2
3 <!-- Copyright 2016 The Chromium Authors. All rights reserved. 3 <!-- Copyright 2016 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be 4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file. --> 5 found in the LICENSE file. -->
6 6
7 <html> 7 <html>
8 <head> 8 <head>
9 <meta http-equiv="content-type" content="text/html; charset=UTF-8"> 9 <meta http-equiv="content-type" content="text/html; charset=UTF-8">
10 <title>Variations on a theme of window.open</title> 10 <title>Variations on a theme of window.open</title>
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 <a href="http://google.com" 121 <a href="http://google.com"
122 onclick="window.open('about:blank','_blank'); event.preventDefault();" 122 onclick="window.open('about:blank','_blank'); event.preventDefault();"
123 name="webScenarioWindowOpenWithPreventDefaultLink" 123 name="webScenarioWindowOpenWithPreventDefaultLink"
124 id="webScenarioWindowOpenWithPreventDefaultLink"> 124 id="webScenarioWindowOpenWithPreventDefaultLink">
125 webScenarioWindowOpenWithPreventDefaultLink 125 webScenarioWindowOpenWithPreventDefaultLink
126 </a> 126 </a>
127 </td> 127 </td>
128 <td>about:blank opened in a new window, with an href and a preventDefault<br ></td> 128 <td>about:blank opened in a new window, with an href and a preventDefault<br ></td>
129 </tr> 129 </tr>
130 130
131 <tr id="_webScenarioWindowOpenWithAboutNewTabScript">
132 <td>
133 <a href="data:text/html,<script>window.location='about:newtab';</script>"
134 target="_blank"
135 name="webScenarioWindowOpenWithAboutNewTabScript"
136 id="webScenarioWindowOpenWithAboutNewTabScript">
137 webScenarioWindowOpenWithAboutNewTabScript
138 </a>
139 </td>
140 <td>about:blank opened in a new window, using "window.location='about:newtab " script<br></td>
141 </tr>
142
131 <tr id="_webScenarioWindowOpenAndSetLocation"> 143 <tr id="_webScenarioWindowOpenAndSetLocation">
132 <td> 144 <td>
133 <script> 145 <script>
134 var openAndUpdateWindow = function() { 146 var openAndUpdateWindow = function() {
135 var twin = window.open('', '', ''); 147 var twin = window.open('', '', '');
136 if (!twin.top) { 148 if (!twin.top) {
137 return; 149 return;
138 } 150 }
139 if (twin.document.title == '') { 151 if (twin.document.title == '') {
140 var target = window.location + "#updated"; 152 var target = window.location + "#updated";
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 name="webScenarioOpenWindowAndInjectPopup" 244 name="webScenarioOpenWindowAndInjectPopup"
233 id="webScenarioOpenWindowAndInjectPopup" 245 id="webScenarioOpenWindowAndInjectPopup"
234 value="webScenarioOpenWindowAndInjectPopup"> 246 value="webScenarioOpenWindowAndInjectPopup">
235 </td> 247 </td>
236 <td>Open a window, then inject a window.open call into that window.<br></td> 248 <td>Open a window, then inject a window.open call into that window.<br></td>
237 </tr> 249 </tr>
238 250
239 </table> 251 </table>
240 </body> 252 </body>
241 </html> 253 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698