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

Unified Diff: third_party/WebKit/LayoutTests/storage/quota/storagequota-request-persistent-quota.html

Issue 2585563002: Quota: StorageInfo should be a dictionary (Closed)
Patch Set: Created 4 years 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
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
index 942b349e866b9903b5046da5092d540917fbf55e..5b6453be9df0e9bb71f84eea8332e18cb66956a7 100644
--- a/third_party/WebKit/LayoutTests/storage/quota/storagequota-request-persistent-quota.html
+++ b/third_party/WebKit/LayoutTests/storage/quota/storagequota-request-persistent-quota.html
@@ -6,6 +6,7 @@
<script type="text/javascript">
description("This tests navigator.storageQuota.requestPersistentQuota.");
+var info;
var usage;
var grantedQuota;
@@ -19,6 +20,10 @@ function onrejected(error) {
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;
@@ -42,6 +47,9 @@ function runRequestQuotaWithMisingArgumentTest() {
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;

Powered by Google App Engine
This is Rietveld 408576698