diff -r 269d99fd6421 -r bedc3b93a040 vmtest/src/main/java/org/apidesign/bck2brwsr/vmtest/impl/Bck2BrwsrCase.java --- a/vmtest/src/main/java/org/apidesign/bck2brwsr/vmtest/impl/Bck2BrwsrCase.java Tue Dec 25 17:46:21 2012 +0100 +++ b/vmtest/src/main/java/org/apidesign/bck2brwsr/vmtest/impl/Bck2BrwsrCase.java Sat Dec 29 19:42:47 2012 +0100 @@ -17,10 +17,12 @@ */ package org.apidesign.bck2brwsr.vmtest.impl; +import java.io.File; +import java.io.FileWriter; +import java.io.IOException; import java.lang.reflect.Method; import java.util.Map; import java.util.WeakHashMap; -import javax.script.Invocable; import org.apidesign.bck2brwsr.launcher.Launcher; import org.apidesign.bck2brwsr.launcher.MethodInvocation; import org.testng.ITest; @@ -35,8 +37,6 @@ private final Launcher l; private final String type; Object value; - private Invocable code; - private CharSequence codeSeq; private static final Map compiled = new WeakHashMap<>(); private Object inst; @@ -64,4 +64,11 @@ final String typeName() { return type; } + static void dumpJS(StringBuilder sb, Bck2BrwsrCase c) throws IOException { + File f = File.createTempFile(c.m.getName(), ".js"); + try (final FileWriter w = new FileWriter(f)) { + w.append(c.l.toString()); + } + sb.append("Path: ").append(f.getPath()); + } }