Revision 497c31799d9d2a643acc8c000f6d54e00ce56950 authored by Geoffrey Sneddon on 07 November 2018, 13:23:33 UTC, committed by GitHub on 07 November 2018, 13:23:33 UTC
Co-Authored-By: jgraham <james@hoppipolla.co.uk>
1 parent 25ae54b
estimate-parallel.https.any.js
// META: title=StorageManager: multiple estimate() calls in parallel
promise_test(async t => {
let r1, r2;
await Promise.all([
navigator.storage.estimate().then(r => { r1 = r; }),
navigator.storage.estimate().then(r => { r2 = r; })
]);
assert_true(('usage' in r1) && ('quota' in r1),
'first response should have expected fields');
assert_true(('usage' in r2) && ('quota' in r2),
'second response should have expected fields');
}, 'Multiple estimate() calls in parallel should complete');
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...