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

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: rename WebSomeCallbacks and SomeCallbacks Created 5 years, 6 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
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..0e5e0b42ad93999401bd5d008bdddc46bb836912
--- /dev/null
+++ b/LayoutTests/storage/quota/durability.html
@@ -0,0 +1,33 @@
+<html>
+<head>
+<script src="../../resources/js-test.js"></script>
+</head>
+<body>
+<script type="text/javascript">
+description("This tests durability.");
+
+var usage;
+var grantedQuota;
+
+function onrejected(error) {
+ testFailed(error.name + ": " + error.message);
+ finishJSTest();
+}
+
+function runTest() {
+ debug("calling requestDurability");
+ navigator.storage.requestPersistent().then(function(adfs) {
+ testPassed("then got called");
+ finishJSTest();
+ }, onrejected);
+}
+
+if (navigator.storage) {
+ window.jsTestIsAsync = true;
+ runTest();
+} else {
+ testFailed("This test requires navigator.storage.");
+}
+</script>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/storage/quota/durability-expected.txt » ('j') | Source/modules/quota/StorageManager.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698