mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests to revision 388ba3a049a3473b1945b9f8f81e9d6e342a249e
This commit is contained in:
parent
43e21dc845
commit
bdaf11b099
139 changed files with 3089 additions and 807 deletions
|
@ -0,0 +1,12 @@
|
|||
// META: title=StorageManager: estimate() should have usage details
|
||||
|
||||
promise_test(async t => {
|
||||
const estimate = await navigator.storage.estimate();
|
||||
assert_equals(typeof estimate, 'object');
|
||||
assert_true('usage' in estimate);
|
||||
assert_equals(typeof estimate.usage, 'number');
|
||||
assert_true('quota' in estimate);
|
||||
assert_equals(typeof estimate.quota, 'number');
|
||||
assert_true('usageDetails' in estimate);
|
||||
assert_equals(typeof estimate.usageDetails, 'object');
|
||||
}, 'estimate() resolves to dictionary with members, including usageDetails');
|
Loading…
Add table
Add a link
Reference in a new issue