blob: 495623ba61c7a305f3a0b0561c463fa724c24f16 [file] [log] [blame]
jhoneycutt@apple.com97fad9d2014-02-21 20:37:01 +00001<head>
2 <style>
3 :first-of-type {
4 position: fixed;
5 }
6 </style>
7</head>
8
9<body>
10 <p>
11 WebKit bug #<a href="https://bugs.webkit.org/show_bug.cgi?id=129119">129119</a>
12 </p>
13 <p>
14 This test passes if it does not crash after reloading. To run manually, reload the page.
15 </p>
16</body>
17
18<script>
19function runTest()
20{
21 document.body.offetTop;
22
23 if (!window.sessionStorage)
24 return;
25
26 if (sessionStorage.testCompleted) {
27 delete sessionStorage.testCompleted;
28 if (window.testRunner)
29 testRunner.notifyDone();
30 } else {
31 sessionStorage.testCompleted = true;
32 window.location.reload(true);
33 }
34}
35
36if (window.testRunner) {
37 testRunner.waitUntilDone();
38 testRunner.dumpAsText();
39}
40
41window.addEventListener('DOMContentLoaded', function() { window.setTimeout(runTest, 100) }, false);
42</script>