2 if (window
.testRunner
) {
3 testRunner
.dumpAsText();
4 testRunner
.waitUntilDone();
7 window
.iframeLoadCount
= 0;
9 window
.onload = function() {
10 frames
[0].location
.reload();
15 ++top.iframeLoadCount;
16 alert('Frame has loaded ' + top.iframeLoadCount + ' time(s).');
17 if (top.iframeLoadCount == 2) {
19 if (window.testRunner)
20 testRunner.notifyDone();
21 } else if (top.iframeLoadCount > 2)