Commit Graph

9 Commits

Author SHA1 Message Date
Geoff Brown
3115836c5c Bug 1375678 - Enable eslint on testing/modules - additional changes; r=standard8 2017-06-23 15:08:04 -06:00
Geoff Brown
03ec89d132 Bug 1375678 - Enable lint on testing/modules - mechanical changes; r=standard8 2017-06-23 15:08:02 -06:00
Andrew McCreight
aa2e0787df Bug 1375188 - Don't import TextEncoder from osfile.jsm in CoverageUtils.jsm. r=Gijs
This import is unnecessary, because the WebIDL interface for
TextEncoder has Exposed=System, so it is available on the JSM
global. I can revert some of the changes from bug 1348103 at the same
time.

I need to remove this import, because it will break with shared JSM
globals.

MozReview-Commit-ID: BKmaH8iTFnI

--HG--
extra : rebase_source : bbb2944245ec2d8040f5138e1c6ee00ea05a52a3
2017-06-21 09:28:52 -07:00
Greg Mierzwinski
92afe39265 Bug 1348103 - Fix test_chrome_bookmarks.js error when collecting code coverage on linux64-jsdcov. r=Gijs
This patch first adds an argument to the 'do_get_file(...)' function call in 'test_chrome_bookmarks.js' that simply allows the 'chromefiles' folder to be non-existent if it does not exist. The 'CoverageUtils.jsm' file is then modified so that the import of 'osfile.jsm' does not interfere with any tests. So, it is now imported into the script after the test has completed. Two other tests have unwanted behaviour that cause code coverage collection to fail so they are also skipped through this patch.

MozReview-Commit-ID: H42HN1solkh

--HG--
extra : rebase_source : 82706778961cd5d7dee4f66eb691d8ec62bde365
2017-04-29 10:47:24 -04:00
Greg Mierzwinski
4d2572b183 Bug 1317019 - Fix object iteration and check if scriptName exists. r=chmanchester,jmaher
This patch first implements an iterator so that we can properly iterate over the elements of the object returned by the _getMethodNames function. Next, the recordTestCoverage function now checks to see if the file actually has methods before recording them. And finally, some formatting was done.

MozReview-Commit-ID: EPOeYlMBc0w

--HG--
extra : rebase_source : c2145303916189804ba6ff31ede9310ab63d5104
2017-01-21 16:04:28 -07:00
Greg Mierzwinski
e24e9fdcd6 Bug 1252995 - recordTestCoverage modification. r=chmanchester
This is a modification to recordTestCoverage. It now gathers methods and the lines each span, uncovered lines, and now also places a version control block at the beginning of every artifact.

MozReview-Commit-ID: LbpnDqheYpy
2016-03-11 19:21:36 -05:00
Greg Mierzwinski
814949873d Bug 1252995 - Add a method to get lines and name of methods. r=chmanchester
This method gets method names and the lines each method spans. It uses getAllOffsets to get the lines.

MozReview-Commit-ID: Df4kP11obq2
2016-03-11 19:18:19 -05:00
Greg Mierzwinski
d2746f5dc8 Bug 1252995 - Add a method to get uncovered lines. r=chmanchester
The uncovered lines are now obtained through the use of getAllOffsets and comparing against lines that were covered.

MozReview-Commit-ID: DblJeEALUq5
2016-03-11 19:13:33 -05:00
Chris Manchester
45068b730c Bug 1229598 - Add a mode to browser-chrome tests to summarize per-test code coverage. r=ahal
--HG--
extra : commitid : 25ib6OSlxuz
2015-12-23 14:04:49 -08:00