tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

persisted.https.any.js (545B)


      1 // META: title=StorageManager: persisted()
      2 
      3 test(function(t) {
      4  assert_true('persisted' in navigator.storage);
      5  assert_equals(typeof navigator.storage.persisted, 'function');
      6  assert_true(navigator.storage.persisted() instanceof Promise);
      7 }, 'persisted() method exists and returns a Promise');
      8 
      9 promise_test(function(t) {
     10  return navigator.storage.persisted().then(function(result) {
     11    assert_equals(typeof result, 'boolean');
     12    assert_equals(result, false);
     13  });
     14 }, 'persisted() returns a promise and resolves as boolean with false');