blob: 38c4b623bd32e47ac5447ccbc5b301dc9d55cbf7 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body>
<script>
description('Simulates flow from a page that\'s in the page cache to one that\'s not, and then back to the page cached page.');
onpageshow = function(event) {
if (window.history.state == 'navigated') {
testPassed('WebTiming asserts in FrameLoader.cpp did not fire');
finishJSTest();
} else {
if (window.testRunner)
testRunner.overridePreference('WebKitUsesPageCachePreferenceKey', 1);
setTimeout(function() {window.history.replaceState('navigated', ''); location.href = 'data:text/html,<script>onunload=function() {},onload=function(){history.back();}<' + '/script>';}, 0);
}
}
var jsTestIsAsync = true;
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>