| <script src="../resources/js-test-pre.js"></script> |
| <script src="resources/fs-test-util.js"></script> |
| description("This tests webkitStorageInfo.requestQuota."); |
| function errorCallback(error) |
| testFailed("Error occurred: " + error); |
| function quotaCallback(newQuota) |
| // We must be given 0 quota, the same amount as we requested. |
| shouldBe("grantedQuota", "0"); |
| if (window.webkitStorageInfo) { |
| window.jsTestIsAsync = true; |
| // Requesting '0' quota for testing (this request must be almost always granted without showing any platform specific notification UI). |
| webkitStorageInfo.requestQuota(webkitStorageInfo.TEMPORARY, 0, quotaCallback, errorCallback); |
| debug("This test requires window.webkitStorageInfo."); |
| window.successfullyParsed = true; |
| <script src="../resources/js-test-post.js"></script> |