var disableWorkerTest = "Persist doesn't work in workers";
var testGenerator = testSteps();

function* testSteps()
{
  SpecialPowers.pushPrefEnv({
    "set": [["dom.storageManager.enabled", true],
            ["dom.storageManager.prompt.testing", true],
            ["dom.storageManager.prompt.testing.allow", true]]
  }, continueToNextStep);
  yield undefined;

  navigator.storage.persist().then(grabArgAndContinueHandler);
  let persistResult = yield undefined;

  is(persistResult, true, "Persist succeeded");

  navigator.storage.persisted().then(grabArgAndContinueHandler);
  let persistedResult = yield undefined;

  is(persistResult, persistedResult, "Persist/persisted results are consistent");

  finishTest();
}
