Roll leveldb 3f7758:803d69 (v1.17 -> v1.18)
[chromium-blink-merge.git] / chrome / test / data / cancelled_redirect_test.html
blob8f5ead280d436506d116386360c921d1b6190aab
1 <!--Test file for ClientCancelled redirect_uitest. This tests that a location change when a pending
2 client redirect exists (in this case a meta-refresh) isn't flagged as a client redirect. 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.
4 We can't use a body onload to do the location change, because this will end up firing before the
5 meta-refresh timer is scheduled, so we use a non-zero timeout of 1msec for this. -->
6 <html>
7 <head>
8 <meta http-equiv="refresh" content="20000">
9 <script>
10 function clickHandler() {
11 document.location = "#myanchor";
12 return true;
14 </script>
15 </head>
16 <body onclick="clickHandler();">
17 <input type="button" id="mybutton" onclick="document.location='#myanchor'"/>
18 <a name="myanchor">Anchor</a><br/>
19 </body>
20 </html>