Uploaded image for project: 'ZATS'
  1. ZATS
  2. ZATS-70

If a script tag contains javascript line coments the javascript parser issued an exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2.1.0
    • 2.0.0
    • Mimic

      The exception raised:

      SEVERE: missing } after function body
      org.zkoss.zats.ZatsException: missing } after function body
      	at org.zkoss.zats.mimic.impl.au.AuUtility.parseAuResponseFromLayout(AuUtility.java:186)
      	at org.zkoss.zats.mimic.impl.response.DownloadHandler.process(DownloadHandler.java:87)
      	at org.zkoss.zats.mimic.impl.EmulatorClient.connect(EmulatorClient.java:153)
      	at org.zkoss.zats.testcase.ScriptTest.testSyntaxError(ScriptTest.java:36)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
      	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
      	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
      	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
      	at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
      	at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
      	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
      Caused by: org.mozilla.javascript.EvaluatorException: missing } after function body
      	at org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:77)
      	at org.mozilla.javascript.DefaultErrorReporter.error(DefaultErrorReporter.java:64)
      	at org.mozilla.javascript.Parser.addError(Parser.java:188)
      	at org.mozilla.javascript.Parser.addError(Parser.java:166)
      	at org.mozilla.javascript.Parser.reportError(Parser.java:256)
      	at org.mozilla.javascript.Parser.reportError(Parser.java:250)
      	at org.mozilla.javascript.Parser.mustMatchToken(Parser.java:421)
      	at org.mozilla.javascript.Parser.mustMatchToken(Parser.java:411)
      	at org.mozilla.javascript.Parser.parseFunctionBody(Parser.java:690)
      	at org.mozilla.javascript.Parser.function(Parser.java:828)
      	at org.mozilla.javascript.Parser.parse(Parser.java:566)
      	at org.mozilla.javascript.Parser.parse(Parser.java:511)
      	at org.zkoss.zats.mimic.impl.au.AuUtility.fetchJavascriptFuntionArguments(AuUtility.java:201)
      	at org.zkoss.zats.mimic.impl.au.AuUtility.parseAuResponseFromLayout(AuUtility.java:148)
      	... 28 more
      

            cor3000 cor3000
            mis mis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: