[Pointer Events WPT] Unskip imported/w3c/web-platform-tests/pointerevents/pointereven...
[WebKit-https.git] / LayoutTests / compositing / show-composited-iframe-on-back-button.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Show composited iframe contents when navigating back to page</title>
5 <link rel="stylesheet" href="resources/show-composited-iframe-on-back-button.css">
6 <script>
7 function handleOnPageShow(pageTransitionEvent)
8 {
9     console.assert(window.testRunner);
10     if (pageTransitionEvent.persisted)
11         return;
12
13     // First time the page has been loaded.
14     testRunner.queueLoad("about:blank");
15     testRunner.queueBackNavigation(1);
16 }
17
18 if (window.testRunner) {
19     testRunner.overridePreference("WebKitUsesPageCachePreferenceKey", 1);
20
21     window.onpageshow = handleOnPageShow;
22 }
23 </script>
24 </head>
25 <body>
26 <p>This page has a composited iframe. When navigating to a new page and then back to this one, the iframe contents should show up.</p>
27 <p>To run this test manually, perform the following:</p>
28 <ol>
29     <li>Click <a href="http://apple.com">here</a>.</li>
30     <li>Click the back button in the browser.</li>
31 </ol>
32 <p>This test PASSED if a blue box is visible below. Otherwise, it FAILED.</p>
33 <iframe class="container" scrolling="no" src="resources/composited-subframe.html"></iframe>
34 </body>
35 </html>