mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Update web-platform-tests to revision 345300fad3945a5f1441fb2b2001109ca48f36e8
This commit is contained in:
parent
71ba247942
commit
05db47be0f
109 changed files with 2576 additions and 1228 deletions
|
@ -347,22 +347,9 @@ backgroundFetchTest(async (test, backgroundFetch) => {
|
|||
uniqueId(), ['resources/feature-name.txt', '/common/slow.py']);
|
||||
|
||||
const record = await registration.match('resources/feature-name.txt');
|
||||
|
||||
await new Promise(resolve => {
|
||||
const expectedResultText = 'Background Fetch';
|
||||
|
||||
registration.onprogress = async event => {
|
||||
if (event.target.downloaded < expectedResultText.length)
|
||||
return;
|
||||
|
||||
const response = await record.responseReady;
|
||||
|
||||
assert_true(response.url.includes('resources/feature-name.txt'));
|
||||
const completedResponseText = await response.text();
|
||||
assert_equals(completedResponseText, expectedResultText);
|
||||
|
||||
resolve();
|
||||
};
|
||||
});
|
||||
const response = await record.responseReady;
|
||||
assert_true(response.url.includes('resources/feature-name.txt'));
|
||||
const completedResponseText = await response.text();
|
||||
assert_equals(completedResponseText, 'Background Fetch');
|
||||
|
||||
}, 'Access to active fetches is supported.');
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
idl_test(
|
||||
['background-fetch'],
|
||||
['service-workers', 'dedicated-workers', 'dom'],
|
||||
['service-workers', 'html', 'dom'],
|
||||
idl_array => {
|
||||
const isServiceWorker = location.pathname.includes('.serviceworker.');
|
||||
if (isServiceWorker) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue