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

Side by Side Diff: chrome/test/data/cancelled_redirect_test.html

Issue 3174023: Revert 56834 - Fix a few test failures when landing http://trac.webkit.org/ch... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 4 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
« no previous file with comments | « chrome/browser/history/redirect_uitest.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
1 <!--Test file for ClientCancelled redirect_uitest. This tests that a location ch ange when a pending 1 <!--Test file for ClientCancelled redirect_uitest. This tests that a location ch ange when a pending
2 client redirect exists (in this case a meta-refresh) isn't flagged as a client r edirect. The timeout 2 client redirect exists (in this case a meta-refresh) isn't flagged as a client r edirect. The timeout
3 for the meta-refresh is large so that it can't happen during this test; we just want it to be scheduled. 3 for the meta-refresh is large so that it can't happen during this test; we just want it to be scheduled.
4 We can't use a body onload to do the location change, because this will end up f iring before the 4 We can't use a body onload to do the location change, because this will end up f iring before the
5 meta-refresh timer is scheduled, so we use a non-zero timeout of 1msec for this. --> 5 meta-refresh timer is scheduled, so we use a non-zero timeout of 1msec for this. -->
6 <html> 6 <html>
7 <head> 7 <head>
8 <meta http-equiv="refresh" content="20000"> 8 <meta http-equiv="refresh" content="20000">
9 <script> 9 <script>
10 function click() { 10 function click() {
11 document.location = "#myanchor"; 11 document.location = "#myanchor";
12 return true; 12 return true;
13 } 13 }
14 </script> 14 </script>
15 </head> 15 </head>
16 <body onclick="click()"> 16 <body>
17 <input type="button" id="mybutton" onclick="document.location='#myanch or'"/> 17 <input type="button" id="mybutton" onclick="document.location='#myanch or'"/>
18 <a name="myanchor">Anchor</a><br/> 18 <a name="myanchor">Anchor</a><br/>
19 </body> 19 </body>
20 </html> 20 </html>
OLDNEW
« no previous file with comments | « chrome/browser/history/redirect_uitest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698