зеркало из 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:
Родитель
2a72afe964
Коммит
39e39a5421
|
@ -2544,6 +2544,19 @@ 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" };
|
||||
|
|
Загрузка…
Ссылка в новой задаче