Bug 1380659 - Move xpcshell and mochitest in different directories. r=me

This commit is contained in:
Marco Castelluccio
2017-07-21 20:22:07 +02:00
parent fd86526f87
commit a4f2544f9e
9 changed files with 9 additions and 2 deletions

View File

@@ -0,0 +1,17 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
function run_test() {
Assert.ok("@mozilla.org/tools/code-coverage;1" in Cc);
let codeCoverageCc = Cc["@mozilla.org/tools/code-coverage;1"];
Assert.ok(!!codeCoverageCc);
let codeCoverage = codeCoverageCc.getService(Ci.nsICodeCoverage);
Assert.ok(!!codeCoverage);
codeCoverage.dumpCounters();
codeCoverage.resetCounters();
}