estimate-usage-details.https.tentative.any.js (544B)
1 // META: title=StorageManager: estimate() should have usage details 2 3 promise_test(async t => { 4 const estimate = await navigator.storage.estimate(); 5 assert_equals(typeof estimate, 'object'); 6 assert_true('usage' in estimate); 7 assert_equals(typeof estimate.usage, 'number'); 8 assert_true('quota' in estimate); 9 assert_equals(typeof estimate.quota, 'number'); 10 assert_true('usageDetails' in estimate); 11 assert_equals(typeof estimate.usageDetails, 'object'); 12 }, 'estimate() resolves to dictionary with members, including usageDetails');