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

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

Issue 1110063011: WIP Durable storage, webkit side (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ToT Created 5 years, 7 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/quota/StorageQuota.h » ('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..8a21396257676d6204507cdb5267e4bad76a9970
--- /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.storageQuota.requestDurability().then(function(storageInfo) {
+ testPassed("then got called");
+ finishJSTest();
+ }, onrejected);
+}
+
+if (navigator.storageQuota) {
+ window.jsTestIsAsync = true;
+ runTest();
+} else {
+ testFailed("This test requires navigator.storageQuota.");
+}
+</script>
+</body>
+</html>
« no previous file with comments | « no previous file | Source/modules/quota/StorageQuota.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698