зеркало из https://github.com/mozilla/gecko-dev.git
22 строки
610 B
JavaScript
22 строки
610 B
JavaScript
/* 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/. */
|
|
|
|
async function run_test() {
|
|
do_test_pending();
|
|
|
|
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);
|
|
|
|
await codeCoverage.dumpCounters();
|
|
|
|
await codeCoverage.resetCounters();
|
|
|
|
do_test_finished();
|
|
}
|