blob: d5bb3a843d23dc644a95ea38eefe9f30036fcc50 [file] [log] [blame]
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
window.iframeLoadCount = 0;
window.onload = function() {
frames[0].location.reload();
}
</script>
<iframe srcdoc="
<script>
++top.iframeLoadCount;
alert('Frame has loaded ' + top.iframeLoadCount + ' time(s).');
if (top.iframeLoadCount == 2) {
alert('PASS');
if (window.testRunner)
testRunner.notifyDone();
} else if (top.iframeLoadCount > 2)
alert('FAIL!!');
</script>
"></iframe>