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..be17b5449d845b491d0be05210e71292af414f95 |
--- /dev/null |
+++ b/LayoutTests/storage/quota/durability-basics.html |
@@ -0,0 +1,21 @@ |
+<!DOCTYPE html> |
+<title>requestPersistent returns a promise that is fulfilled</title> |
+<script src="../../resources/testharness.js"></script> |
+<script src="../../resources/testharnessreport.js"></script> |
+<script type="text/javascript"> |
+ |
+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; |
+}, "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; |
+}, "navigator.storage.persistentPermission returns a promise that resolves."); |
+ |
+</script> |