Move /platform/ios-simulator/accessibility tests to accessibility/ios-simulator/
[WebKit-https.git] / LayoutTests / platform / mac-wk2 / tiled-drawing / scrolling / null-parent-back-crash.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4     <style>
5         .fixed {
6             position: fixed;
7             width: 10px;
8             height: 10px;
9             background-color: green;
10         }
11     </style>
12     <script>
13         if (window.testRunner) {
14             testRunner.dumpAsText();
15             testRunner.waitUntilDone();
16             testRunner.overridePreference("WebKitUsesPageCachePreferenceKey", 1);
17         }
18
19         function pageHidden()
20         {
21             if (!sessionStorage.finishTest) {
22                 sessionStorage.finishTest = true;
23             } else {
24                 // Clean up after ourselves
25                 delete sessionStorage.finishTest;
26             }
27         }
28
29         function pageShown()
30         {
31             if (sessionStorage.finishTest) {
32                 if (window.testRunner)
33                     testRunner.notifyDone();
34             } else {
35                 setTimeout(function() {window.location = "data:text/html,<script>history.back();</scrip" + "t>";}, 0);
36             }
37         }
38     </script>
39 </head>
40 <body onpagehide="pageHidden();" onpageshow="pageShown();">
41 <p>Test passes if it does not crash.</p>
42 <div class="fixed"></div>
43 <iframe></iframe>
44 </body>
45 </html>