Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Unified Diff: LayoutTests/storage/quota/durability.html

Issue 1154573005: Expose Durable Storage API to script (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: respond to jsbell comments Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/modules/modules.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/storage/quota/durability.html
diff --git a/LayoutTests/storage/quota/durability.html b/LayoutTests/storage/quota/durability.html
new file mode 100644
index 0000000000000000000000000000000000000000..81dd83d06cfa7e0e3f4db69d3af74d494e8e3ddf
--- /dev/null
+++ b/LayoutTests/storage/quota/durability.html
@@ -0,0 +1,14 @@
+<!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); }, "This test requires navigator.storage");
+promise_test(function(the_test) {
+ var promise = navigator.storage.requestPersistent();
+ // assert_class_string(promise, "Promise");
dgrogan 2015/07/07 04:25:14 jsbell@: I'd like to test 2 things here. 1) navig
jsbell 2015/07/07 16:51:04 The return value is automagically wrapped in a pro
+ return promise;
+}, "navigator.storage.requestPersistent returns a promise that resolves.");
+
+</script>
« no previous file with comments | « no previous file | Source/modules/modules.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698