What steps will reproduce the problem? 1. Please see the complete files in attachment What is the expected output? What do you see instead? I should not be getting this: (...) --tests all --verbose line 239:9 mismatched input 'float' expecting Identifier line 239:49 missing RPAREN at ';' line 240:62 no viable alternative at input 'float' line 246:5 mismatched input ')' expecting RBRACE line 251:21 no viable alternative at input ':' line 251:30 missing Identifier at '(' (...)
Chrome 25.0.1364.97 Windows: Run 70 tests (Passed: 69; Fails: 0; Errors 1) (130.00 ms) error loading file: /test/src/main/webapp/js/libs/filters/MetricRangeSlider.js:251: Uncaught SyntaxError: Unexpected token ; Firefox 12.0 Windows: Run 70 tests (Passed: 69; Fails: 0; Errors 1) (276.00 ms) error loading file: /test/src/main/webapp/js/libs/filters/MetricRangeSlider.js:251: missing } after property list Tests failed: Tests failed. See log for details. (...) What version of the product are you using? On what operating system? coverage 1.3.2 or coverage 1.3.5 Please provide any additional information below. The problem is in line (from attached files): updateDefaultPanel:LCOV_18h[251]++; function() { as you can see, LCOV_18h[251]++; is placed on the wrong place. I suppose it should be: updateDefaultPanel: function() { LCOV_18h[251]++;
While this lines:
line 239:9 mismatched input 'float' expecting Identifier line 239:49 missing RPAREN at ';' line 240:62 no viable alternative at input 'float' line 246:5 mismatched input ')' expecting RBRACE line 251:21 no viable alternative at input ':' line 251:30 missing Identifier at '('
may be related to coverage processing of external libs (like jquery) the error
error loading file: /test/src/main/webapp/js/libs/filters/MetricRangeSlider.js:251: Uncaught SyntaxError: Unexpected token ;
points directly to my file although its code is pretty straightforward...
Can this be a bug? Are there any workarounds?