https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 4ed222f683a26ea90dcb5eef36cf3ea9c8ef65a0 authored by Josh Matthews on 12 September 2018, 16:20:36 UTC
Work around lint failure.
Tip revision: 4ed222f
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');
back to top