mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35: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,29 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<title>Quota Estimate: usage details reflect application cache changes.</title>
|
||||
<meta charset='utf-8'>
|
||||
<link rel='author' href='jarrydg@chromium.org' title='Jarryd Goodman'>
|
||||
<script src='/resources/testharness.js'></script>
|
||||
<script src='/resources/testharnessreport.js'></script>
|
||||
<script src='../cookie-store/resources/helpers.js'></script>
|
||||
<script>
|
||||
'use strict';
|
||||
|
||||
promise_test(async t => {
|
||||
let estimate = await navigator.storage.estimate();
|
||||
|
||||
const usageBeforeCreate = estimate.usageDetails.applicationCache || 0;
|
||||
|
||||
const iframe = await
|
||||
createIframe('./resources/iframe_with_appcache_manifest.html', t);
|
||||
await waitForMessage();
|
||||
|
||||
estimate = await navigator.storage.estimate();
|
||||
assert_true('applicationCache' in estimate.usageDetails);
|
||||
const usageAfterCreate = estimate.usageDetails.applicationCache;
|
||||
|
||||
assert_greater_than(
|
||||
usageAfterCreate, usageBeforeCreate);
|
||||
}, 'estimate() shows usage increase after app is cached');
|
||||
</script>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue