Index: third_party/WebKit/LayoutTests/storage/quota/storagequota-request-persistent-quota.html |
diff --git a/third_party/WebKit/LayoutTests/storage/quota/storagequota-request-persistent-quota.html b/third_party/WebKit/LayoutTests/storage/quota/storagequota-request-persistent-quota.html |
deleted file mode 100644 |
index 5b6453be9df0e9bb71f84eea8332e18cb66956a7..0000000000000000000000000000000000000000 |
--- a/third_party/WebKit/LayoutTests/storage/quota/storagequota-request-persistent-quota.html |
+++ /dev/null |
@@ -1,90 +0,0 @@ |
-<html> |
-<head> |
-<script src="../../resources/js-test.js"></script> |
-</head> |
-<body> |
-<script type="text/javascript"> |
-description("This tests navigator.storageQuota.requestPersistentQuota."); |
- |
-var info; |
-var usage; |
-var grantedQuota; |
- |
-function onrejected(error) { |
- testFailed(error.name + ": " + error.message); |
- finishJSTest(); |
-} |
- |
-// Test body functions ---------------------------------------------------- |
- |
-function runRequestQuotaTest() { |
- debug("* Requesting persistent quota."); |
- navigator.storageQuota.requestPersistentQuota(1024).then(function(storageInfo) { |
- |
- info = storageInfo; |
- shouldBe("info.__proto__", "Object.prototype"); |
- |
- usage = storageInfo.usage; |
- grantedQuota = storageInfo.quota; |
- |
- // Quota value would vary depending on the test environment. |
- shouldBeGreaterThanOrEqual("usage", "0"); |
- shouldBeNonZero("grantedQuota"); |
- |
- runNextTest(); |
- }, onrejected); |
-} |
- |
-function runRequestQuotaWithMisingArgumentTest() { |
- debug("* Requesting persistent quota with missing argument."); |
- navigator.storageQuota.requestPersistentQuota().then(function() { |
- testFailed('resolved unexpectedly'); |
- }, function(e) { |
- testPassed('rejected as expected: ' + e); |
- }).then(runNextTest); |
-} |
- |
-function runRequestQuotaWithNegativeValueTest() { |
- debug("* Requesting persistent quota with negative value."); |
- navigator.storageQuota.requestPersistentQuota(-1024).then(function(storageInfo) { |
- info = storageInfo; |
- shouldBe("info.__proto__", "Object.prototype"); |
- |
- usage = storageInfo.usage; |
- grantedQuota = storageInfo.quota; |
- |
- // Quota value would vary depending on the test environment. |
- shouldBeGreaterThanOrEqual("usage", "0"); |
- shouldBeZero("grantedQuota"); |
- |
- runNextTest(); |
- }, onrejected); |
-} |
- |
-// End of test body functions --------------------------------------------- |
- |
-var testsList = [ |
- runRequestQuotaTest, |
- runRequestQuotaWithMisingArgumentTest, |
- runRequestQuotaWithNegativeValueTest, |
-]; |
-var testCounter = 0; |
- |
-function runNextTest() { |
- if (testCounter == testsList.length) { |
- debug("Finished running tests."); |
- finishJSTest(); |
- } else { |
- testsList[testCounter++](); |
- } |
-} |
- |
-if (navigator.storageQuota) { |
- window.jsTestIsAsync = true; |
- runNextTest(); |
-} else { |
- debug("This test requires navigator.storageQuota."); |
-} |
-</script> |
-</body> |
-</html> |