Update web-platform-tests to revision 6c2d23b1b5e4dc00c944eedd16a11850e74a2d11

This commit is contained in:
WPT Sync Bot 2018-08-18 08:07:42 +00:00 committed by Tom Servo
parent ad83faa745
commit 0114122fe0
140 changed files with 4328 additions and 1419 deletions

View file

@ -84,3 +84,15 @@ backgroundFetchTest(async (test, backgroundFetch) => {
assert_equals(results[0].text, 'Background Fetch');
}, 'Using Background Fetch to successfully fetch a single resource');
backgroundFetchTest(async (test, backgroundFetch) => {
const registrationId = uniqueId();
// Very large download total that will definitely exceed the quota.
const options = {downloadTotal: Number.MAX_SAFE_INTEGER};
await promise_rejects(
test, "QUOTA_EXCEEDED_ERR",
backgroundFetch.fetch(registrationId, 'resources/feature-name.txt', options),
'This fetch should have thrown a quota exceeded error');
}, 'Background Fetch that exceeds the quota throws a QuotaExceededError');