Page 1 of 1

Bug #12 - jscoverage does not handle popups

Posted: 2009-10-08 7:24 am
by Indra
Hi,

when will be the Release of next version? can the following lines of code will get in the next release? or is there a way I can add the following lines of code only once, so that it will include in all instrumented js files. Because we are having approx 550+ js files in our application. and it is very hard to include the 3 lines in all 550+ js files manually. Please suggest me.


if (! (top.opener==null ? top : top.opener)._$jscoverage) {
(top.opener==null ? top : top.opener)._$jscoverage = {};
}
var _$jscoverage = (top.opener==null ? top : top.opener)._$jscoverage;"

Re: Bug #12 - jscoverage does not handle popups

Posted: 2009-10-08 6:21 pm
by Ed
This code, or something similar, will be included in the next release.

If you want to patch the current version, look in the file "instrument-js.cpp" (in the function "jscoverage_instrument_js").