Bug 1946184 - Fix computing the CSD margin right after calling HideWindowChrome(...
[gecko.git] / dom / quota / test / common / test_storage_manager_persist_deny.js
blob855d739ca3123bad5cdaa542691901b4354274d1
1 /**
2 * Any copyright is dedicated to the Public Domain.
3 * http://creativecommons.org/publicdomain/zero/1.0/
4 */
6 function* testSteps() {
7 SpecialPowers.pushPrefEnv(
9 set: [["dom.storageManager.prompt.testing.allow", false]],
11 continueToNextStep
13 yield undefined;
15 navigator.storage.persist().then(grabArgAndContinueHandler);
16 let persistResult = yield undefined;
18 is(
19 persistResult,
20 false,
21 "Cancel the persist prompt and resolve a promise with false"
24 navigator.storage.persisted().then(grabArgAndContinueHandler);
25 let persistedResult = yield undefined;
27 is(
28 persistResult,
29 persistedResult,
30 "Persist/persisted results are consistent"
33 finishTest();