1 wasPostTestScriptParsed = true; 2 3 if (window.layoutTestController) 4 layoutTestController.waitUntilDone(); 5 if (window.wasFinishJSTestCalled) 6 finishJSTest(); 7