зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1597622
- add test for kiosk mode enabled; r=andreio
Differential Revision: https://phabricator.services.mozilla.com/D55778 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
9b19b41385
Коммит
4ce9bdd54d
|
@ -2544,6 +2544,20 @@ describe("ASRouter", () => {
|
|||
});
|
||||
});
|
||||
|
||||
describe("_triggerHandler_kiosk", () => {
|
||||
it("should not call #onMessage", () => {
|
||||
const getter = sandbox.stub();
|
||||
getter.returns(true);
|
||||
sandbox.stub(global.BrowserHandler, "kiosk").get(getter);
|
||||
sinon.spy(Router, "onMessage");
|
||||
const target = {};
|
||||
const trigger = { id: "FAKE_TRIGGER", param: "some fake param" };
|
||||
Router._triggerHandler(target, trigger);
|
||||
assert.notCalled(Router.onMessage);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
describe("#UITour", () => {
|
||||
let showMenuStub;
|
||||
const highlightTarget = { target: "target" };
|
||||
|
|
Загрузка…
Ссылка в новой задаче