Merge "Add shutdown call after each test to initialize a new sandbox env for every test." into tm-mainline-prod
This commit is contained in:
@@ -48,6 +48,7 @@ import com.google.common.collect.ImmutableList;
|
||||
import com.google.common.util.concurrent.ListenableFuture;
|
||||
|
||||
import org.json.JSONArray;
|
||||
import org.junit.After;
|
||||
import org.junit.Before;
|
||||
import org.junit.Rule;
|
||||
import org.junit.Test;
|
||||
@@ -86,6 +87,11 @@ public class JSScriptEnginePerfTests {
|
||||
"function test() { return \"hello world\";" + " }", ImmutableList.of(), "test");
|
||||
}
|
||||
|
||||
@After
|
||||
public void after() {
|
||||
sJSScriptEngine.shutdown();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void evaluate_helloWorld() throws Exception {
|
||||
BenchmarkState state = mPerfStatusReporter.getBenchmarkState();
|
||||
|
||||
Reference in New Issue
Block a user