Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / navigation / scrollstate-after-location-reload.html
blob60fb464c372155c3fdb7f14e6a3804e275c2f730
1 <html>
2 <script>
3 if (window.testRunner) {
4 testRunner.waitUntilDone();
5 testRunner.dumpAsText();
7 function testScroll() {
8 window.setTimeout(function() {
9 if (window.pageYOffset == 20) {
10 document.body.innerHTML = "SUCCESS";
11 testRunner.notifyDone();
12 } else {
13 window.scroll(0,20);
14 window.setTimeout(function() {
15 window.location.reload();
16 }, 1000);
18 }, 0);
20 onload = testScroll;
21 </script>
23 <body>
24 This test checks that a page reloaded by window.location.reload() restores its scroll state.
25 https://bugs.webkit.org/show_bug.cgi?id=62482
26 <br>
27 <br>
28 <br>
29 <br>
30 <br>
31 <br>
32 <br>
33 <br>
34 <br>
35 <br>
36 <br>
37 <br>
38 <br>
39 <br>
40 <br>
41 <br>
42 <br>
43 <br>
44 <br>
45 <br>
46 <br>
47 <br>
48 <br>
49 <br>
50 <br>
51 <br>
52 <br>
53 <br>
54 <br>
55 <br>
56 <br>
57 <br>
58 <br>
59 <br>
60 </body>
61 </html>