Fix for a problem which sometimes caused environment to be broken when tests using JsUnitTestBase fail.

This commit is contained in:
Pavel V. Talanov
2012-08-08 13:05:15 +04:00
parent 5b2469227e
commit 0776892b3c
@@ -94,10 +94,14 @@ public abstract class JsUnitTestBase extends MultipleFilesTranslationTest {
@SuppressWarnings("JUnitTestCaseWithNoTests") JsUnitTestBase runner = new JsUnitTestBase() { @SuppressWarnings("JUnitTestCaseWithNoTests") JsUnitTestBase runner = new JsUnitTestBase() {
}; };
try {
runner.setUp(); runner.setUp();
runner.runTestFile(testFile); runner.runTestFile(testFile);
}
finally {
runner.tearDown(); runner.tearDown();
} }
}
@Override @Override
protected Map<String, Object> getRhinoTestVariables() throws Exception { protected Map<String, Object> getRhinoTestVariables() throws Exception {