blob: d88718a54813c21df056262f209f39ada8f2c20b [file] [log] [blame]
<?php
require_once '../resources/portabilityLayer.php';
clearstatcache();
if (file_exists(sys_get_temp_dir() . "/reload-main-resource.tmp"))
unlink(sys_get_temp_dir() . "/reload-main-resource.tmp");
?>
<body>
<div id="result"></div>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
function reloadIframe() {
if (localStorage.reloaded)
return;
localStorage.reloaded = true;
window.frames[0].location.reload();
}
function finish() {
document.getElementById("result").innerText = "PASS";
if (window.testRunner)
testRunner.notifyDone();
}
</script>
<iframe src="resources/reload-main-resource-iframe.php" onload="reloadIframe();"></iframe>
</body>