/* 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 test_code_coverage_func1() { return 22;
}
function test_code_coverage_func2() { return 22;
}
async function run_test() {
do_test_pending();
Assert.ok("@mozilla.org/tools/code-coverage;1" in Cc);
// Flush counters for the first time, we should see this function executed, but test_code_coverage_func not executed.
await codeCoverage.flushCounters();
// Flush counters for the second time, we should see this function not executed, but test_code_coverage_func executed.
await codeCoverage.flushCounters();
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.