aboutsummaryrefslogtreecommitdiff
path: root/test/src/jdk/nashorn/internal/codegen/CompilerTest.java
diff options
context:
space:
mode:
authorlana <none@none>2013-08-23 14:18:06 -0700
committerlana <none@none>2013-08-23 14:18:06 -0700
commitd2d49a0797d942977f91a0f0c94cbb13d21bdabc (patch)
treef74870f792116e1e841f9e1482269c48faaa8def /test/src/jdk/nashorn/internal/codegen/CompilerTest.java
parentb3da2916d15cbbcfc9d5a270f319c896e751d9f2 (diff)
parent01a5c8fbf1b428c78951fcb29b041c57f6793195 (diff)
Diffstat (limited to 'test/src/jdk/nashorn/internal/codegen/CompilerTest.java')
-rw-r--r--test/src/jdk/nashorn/internal/codegen/CompilerTest.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/test/src/jdk/nashorn/internal/codegen/CompilerTest.java b/test/src/jdk/nashorn/internal/codegen/CompilerTest.java
index 3cbe1ed4..00d79acb 100644
--- a/test/src/jdk/nashorn/internal/codegen/CompilerTest.java
+++ b/test/src/jdk/nashorn/internal/codegen/CompilerTest.java
@@ -35,6 +35,8 @@ import jdk.nashorn.internal.runtime.ScriptObject;
import jdk.nashorn.internal.runtime.Source;
import jdk.nashorn.internal.runtime.options.Options;
import org.testng.Assert;
+import org.testng.annotations.AfterClass;
+import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
/**
@@ -58,7 +60,8 @@ public class CompilerTest {
private Context context;
private ScriptObject global;
- public CompilerTest() {
+ @BeforeClass
+ public void setupTest() {
final Options options = new Options("nashorn");
options.set("anon.functions", true);
options.set("compile.only", true);
@@ -79,6 +82,12 @@ public class CompilerTest {
this.global = context.createGlobal();
}
+ @AfterClass
+ public void tearDownTest() {
+ this.context = null;
+ this.global = null;
+ }
+
@Test
public void compileAllTests() {
if (TEST262) {