- + "if (window.testRunner) {"
- + "setTimeout(waitForFlag, 1);"
- + "function waitForFlag() {"
- + "if (!testRunner.globalFlag) {"
- + "setTimeout(waitForFlag, 1);"
- + "return;"
- + "}"
- + "performTest();"
- + "}"
- + "} else {"
- + "document.getElementById('console').innerHTML = 'Click the button when all the subframes have finished loading.';"
- + "}"