
js-test-driver - issue #387
Coverage plugin inserts LCOV[line]++ statements between label and loop
What steps will reproduce the problem? 1. Create nested for loops, where the inner breaks the outer using a label, for example outerLoop: for (...) { for (...) { break outerLoop; } }
- Run a test executing the code (with coverage plugin enabled)
What is the expected output? What do you see instead? This should work without the coverage plugin, but with the coverage plugin enabled it fails with with the error "Undefined label 'outerLoop'". This is probably because the coverage plugin inserts code between the label and the outer for loop.
What version of the product are you using? On what operating system? JsTestDriver 1.3.4.b Coverage 1.3.4.b Reproducable in Firefox and Chrome (on Mac)
Status: New
Labels:
Type-Defect
Priority-Medium