Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

/* Any copyright is dedicated to the Public Domain.
"use strict";
add_task(async function test_set_default_browser() {
const sandbox = sinon.createSandbox();
const stub = sandbox.stub();
await SMATestUtils.executeAndValidateAction(
{ type: "SET_DEFAULT_BROWSER" },
{
ownerGlobal: {
getShellService: () => ({
setAsDefault: stub,
}),
},
}
);
Assert.equal(stub.callCount, 1, "setAsDefault was called by the action");
});