blob: 21ad445c634f074f5010763fa8d207c735772f31 [file] [log] [blame]
bdakin@apple.com178d4d32011-04-22 22:42:50 +00001<html>
2<head>
3<script>
4
5function navigate()
6{
7 if (location.hash == "") {
8 if (window.layoutTestController) {
9 layoutTestController.overridePreference("WebKitUsesPageCachePreferenceKey", 1);
10 layoutTestController.waitUntilDone();
11 }
12
13 history.pushState({ }, "", window.location + "#1");
14 setTimeout("window.location.href = 'resources/empty-document-goes-back.html'", 0);
15 return;
16 }
17
18 setTimeout(function () {
19 if (window.layoutTestController)
20 layoutTestController.notifyDone();
21 }, 0);
22}
23
24</script>
25</head>
26<body style="width:800px" onpageshow="navigate();">
27 <div id="result">This test passes if the iframe lays out and paints (meaning it is purple) after the test naviagtes back.</div><br/><br/>
28 <iframe id="iframe" src="resources/simple-iframe.html"></iframe>
29</body>
30</htmL>