tizen beta release
[framework/web/webkit-efl.git] / LayoutTests / fast / history / timed-refresh-in-cached-frame.html
1 <body onload="redirect()">
2 <!-- Needs to take two seconds, because a faster refresh would result in not creating a b/f item for the navigation -->
3 <iframe src='data:text/html,<meta http-equiv="Refresh" content="2; URL=about:blank"><script>if (window.layoutTestController) { window.onpagehide=function(e){alert(&apos;pagehide &apos; + e.persisted)}; }</script>'></iframe>
4 <script>
5 if (window.layoutTestController) {
6     layoutTestController.dumpAsText();
7     layoutTestController.waitUntilDone();
8     layoutTestController.overridePreference("WebKitUsesPageCachePreferenceKey", 1);
9 }
10
11 function redirect()
12 {
13     location='data:text/html,<p>PASSED if didn&apos;t crash in two seconds.</p><script>if (window.layoutTestController) setTimeout("layoutTestController.notifyDone()", 2500); </scr' + 'ipt>';
14 }
15 </script>