1 wasPostTestScriptParsed = true; 2 3 if (window.jsTestIsAsync) { 4 if (window.layoutTestController) 5 layoutTestController.waitUntilDone(); 6 if (window.wasFinishJSTestCalled) 7 finishJSTest(); 8 } else 9 finishJSTest(); 10