| 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>
|
|
|