Chromium Code Reviews| Index: LayoutTests/storage/quota/durability-basics.html |
| diff --git a/LayoutTests/storage/quota/durability-basics.html b/LayoutTests/storage/quota/durability-basics.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..1be58ed790dc519ffcce2bd194fbac1c6bde952b |
| --- /dev/null |
| +++ b/LayoutTests/storage/quota/durability-basics.html |
| @@ -0,0 +1,21 @@ |
| +<!DOCTYPE html> |
|
jsbell
2015/08/03 19:57:41
Since this is not under http/tests this is implici
jsbell
2015/08/03 23:11:16
... and this can be based on (and live with) the t
dgrogan
2015/08/06 23:52:01
Done.
|
| +<title>navigator.storage methods return promises that are fulfilled</title> |
| +<script src="../../resources/testharness.js"></script> |
| +<script src="../../resources/testharnessreport.js"></script> |
| +<script type="text/javascript"> |
|
jsbell
2015/08/03 19:57:41
No need for type here
dgrogan
2015/08/06 23:52:01
Done.
|
| + |
| +test(function() { assert_true(!!navigator.storage); }, "These tests requires navigator.storage"); |
| + |
| +promise_test(function() { |
| + var promise = navigator.storage.requestPersistent(); |
| + assert_true(promise instanceof Promise, "navigator.storage.requestPersistent() returned a Promise.") |
| + return promise; |
|
jsbell
2015/08/03 19:57:41
This looks like it's missing the test of the promi
dgrogan
2015/08/06 23:52:01
That was intentional, content/shell/browser/layout
|
| +}, "navigator.storage.requestPersistent returns a promise that resolves."); |
| + |
| +promise_test(function() { |
| + var promise = navigator.storage.persistentPermission(); |
| + assert_true(promise instanceof Promise, "navigator.storage.persistentPermission() returned a Promise.") |
| + return promise; |
|
jsbell
2015/08/03 19:57:41
Ditto?
dgrogan
2015/08/06 23:52:01
Acknowledged.
|
| +}, "navigator.storage.persistentPermission returns a promise that resolves."); |
| + |
| +</script> |