Dump the code to file
authorJaroslav Tulach <jaroslav.tulach@apidesign.org>
Sun, 25 Nov 2012 17:07:51 +0100
changeset 199866e4f4820c7
parent 198 5c1604c5ca9a
child 200 227bafe6ef52
Dump the code to file
vm/src/test/java/org/apidesign/vm4brwsr/InstanceTest.java
     1.1 --- a/vm/src/test/java/org/apidesign/vm4brwsr/InstanceTest.java	Thu Nov 22 10:38:38 2012 +0100
     1.2 +++ b/vm/src/test/java/org/apidesign/vm4brwsr/InstanceTest.java	Sun Nov 25 17:07:51 2012 +0100
     1.3 @@ -134,9 +134,9 @@
     1.4          try {
     1.5              ret = code.invokeFunction(methodName, args);
     1.6          } catch (ScriptException ex) {
     1.7 -            fail("Execution failed in\n" + codeSeq, ex);
     1.8 +            fail("Execution failed in\n" + StaticMethodTest.dumpJS(codeSeq), ex);
     1.9          } catch (NoSuchMethodException ex) {
    1.10 -            fail("Cannot find method in\n" + codeSeq, ex);
    1.11 +            fail("Cannot find method in\n" + StaticMethodTest.dumpJS(codeSeq), ex);
    1.12          }
    1.13          if (ret == null && expRes == null) {
    1.14              return;
    1.15 @@ -144,7 +144,7 @@
    1.16          if (expRes.equals(ret)) {
    1.17              return;
    1.18          }
    1.19 -        assertEquals(ret, expRes, msg + "was: " + ret + "\n" + codeSeq);
    1.20 +        assertEquals(ret, expRes, msg + "was: " + ret + "\n" + StaticMethodTest.dumpJS(codeSeq));
    1.21          
    1.22      }
    1.23