Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / ManualTests / back-from-document-with-scrollbar.html
blob800437f2ce8330b67d4975d3fc965e58af1f7596
1 <html>
2 <head>
3 <script>
5 function navigate()
7 if (location.hash == "") {
8 if (window.layoutTestController) {
9 layoutTestController.dumpAsText();
10 layoutTestController.waitUntilDone();
13 history.pushState({ }, "", window.location + "#1");
14 setTimeout(function() {
15 window.location.href = 'data:text/html, \
16 <html style="height: 200%"> \
17 <body onunload=""> \
18 <script> \
19 document.body.offsetWidth; \
20 setTimeout("window.history.back();", 0); \
21 <' + '/script> \
22 </body> \
23 </html> \
25 }, 0);
26 return;
29 setTimeout(function () {
30 var result = document.getElementById("result");
31 result.innerHTML = "Success if the web process did not crash."
32 if (window.layoutTestController)
33 layoutTestController.notifyDone();
34 }, 0);
37 </script>
38 </head>
39 <body onpageshow="navigate();">
40 <div id="result">Test did not complete</div>
41 </body>
42 </htmL>