1.1 --- a/vmtest/src/main/java/org/apidesign/bck2brwsr/vmtest/impl/Bck2BrwsrCase.java Tue Jan 22 11:59:25 2013 +0100
1.2 +++ b/vmtest/src/main/java/org/apidesign/bck2brwsr/vmtest/impl/Bck2BrwsrCase.java Tue Jan 22 19:16:38 2013 +0100
1.3 @@ -40,20 +40,20 @@
1.4 private final String type;
1.5 private final boolean fail;
1.6 Object value;
1.7 - private static final Map<Class, Object[]> compiled = new WeakHashMap<>();
1.8 - private Object inst;
1.9 + private final String html;
1.10
1.11 - Bck2BrwsrCase(Method m, String type, Launcher l, boolean fail) {
1.12 + Bck2BrwsrCase(Method m, String type, Launcher l, boolean fail, String html) {
1.13 this.l = l;
1.14 this.m = m;
1.15 this.type = type;
1.16 this.fail = fail;
1.17 + this.html = html;
1.18 }
1.19
1.20 @Test(groups = "run")
1.21 public void executeCode() throws Throwable {
1.22 if (l != null) {
1.23 - MethodInvocation c = l.invokeMethod(m.getDeclaringClass(), m.getName());
1.24 + MethodInvocation c = l.invokeMethod(m.getDeclaringClass(), m.getName(), html);
1.25 String res = c.toString();
1.26 value = res;
1.27 if (fail) {