Chromium Code Reviews| 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> | 
| 
 
jsbell
2015/07/01 17:43:29
Can you implement this as a testharness.js test in
 
dgrogan
2015/07/07 04:03:24
I switched to a tiny testharness test but it's not
 
 | 
| +</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> |