Files
firefox/testing/mochitest/tests/browser/browser_fail_async.js
T
Paolo Amadini 52477a5601 Bug 1365649 - Improve browser-chrome self-tests and the "fail-if" manifest property handling. r=Mossop
The browser-chrome self-test files now use the setExpectedFailuresForSelfTest function to specify the exact number of assertion failures that will be triggered. Also, most failures are now intercepted when specifying the "fail-if" property in a "browser.ini" manifest, while previously only those triggered using the "ok" function were intercepted. This allows re-enabling several browser-chome self-tests.

MozReview-Commit-ID: DlDjWaJPfvH
2017-05-27 09:12:02 +01:00

10 lines
148 B
JavaScript

setExpectedFailuresForSelfTest(1);
function test() {
waitForExplicitFinish();
executeSoon(() => {
ok(false, "fail");
finish();
});
}