OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <title>requestPersistent returns a promise that is fulfilled</title> |
| 3 <script src="../../resources/testharness.js"></script> |
| 4 <script src="../../resources/testharnessreport.js"></script> |
| 5 <script type="text/javascript"> |
| 6 |
| 7 test(function() { assert_true(!!navigator.storage); }, "This test requires navig
ator.storage"); |
| 8 promise_test(function() { |
| 9 var promise = navigator.storage.requestPersistent(); |
| 10 assert_true(promise instanceof Promise, "navigator.storage.requestPersistent
() returned a Promise.") |
| 11 return promise; |
| 12 }, "navigator.storage.requestPersistent returns a promise that resolves."); |
| 13 |
| 14 </script> |
OLD | NEW |