mathiasbroekelmann / js-test-driver

Automatically exported from code.google.com/p/js-test-driver
0 stars 0 forks source link

Coverage plugin inserts LCOV[line]++ statements between label and loop #387

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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;
  }
}

2. 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)

Original issue reported on code.google.com by david.pa...@gmail.com on 29 Jun 2012 at 9:05