mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-02 06:22:20 +00:00
Bug 1815549 - Remove references to non-existent Assert.fail method. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D169137
This commit is contained in:
parent
07f5e0b865
commit
357a4ffe21
@ -138,7 +138,7 @@ async function heuristicIsRestyled(
|
||||
let engine = selectedOneOff.engine;
|
||||
let source = selectedOneOff.source;
|
||||
if (!engine && !source) {
|
||||
Assert.fail("An invalid one-off was passed to urlbarResultIsRestyled");
|
||||
Assert.ok(false, "An invalid one-off was passed to urlbarResultIsRestyled");
|
||||
return;
|
||||
}
|
||||
Assert.equal(
|
||||
|
@ -117,7 +117,8 @@ function add_settings_tasks(prefName, type, background) {
|
||||
secondValue = true;
|
||||
break;
|
||||
default:
|
||||
Assert.fail(
|
||||
Assert.ok(
|
||||
false,
|
||||
`"type" parameter must be one of "string", "number", or "boolean"`
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user