2 <meta http-equiv=
"refresh" content=
"2">
5 if (window
.testRunner
) {
6 testRunner
.waitUntilDone();
7 testRunner
.dumpAsText();
9 function documentURLHash()
11 var index
= document
.URL
.lastIndexOf("#");
14 return document
.URL
.substring(index
);
17 function hashChanged()
19 document
.body
.innerHTML
+= "scrolled to hash " + documentURLHash();
23 function testScroll() {
24 window
.setTimeout(function() {
25 if (window
.pageYOffset
== 100) {
26 document
.body
.innerHTML
= "SUCCESS";
27 testRunner
.notifyDone();
29 location
.assign('scrollstate-after-http-equiv-refresh-fragment-identifier.html#1');
34 onhashchange
= hashChanged
;
39 This test checks that a page reloaded by
http-equiv=
"refresh" restores its scroll state even
40 when the user has loaded a fragment within the document.
41 https://bugs.webkit.org/show_bug.cgi?id=
62482