forked from mirrors/gecko-dev
Automatic update from web-platform-tests Mark some idlharness.html tests as timeout=long These are symptomatic of crbug.com/1047818, but to stop the pain for sheriffs lets mark them timeout=long for now. Drive-by removal of non-existent test for 987224 too. Bug: 987224, 1041851, 1041848, 1062934, 1063416 Change-Id: Id96a25a63f5ce0a4ccc3fff5b16664abf4096936 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2177456 Reviewed-by: Luke Z <lpz@chromium.org> Commit-Queue: Stephen McGruer <smcgruer@chromium.org> Cr-Commit-Position: refs/heads/master@{#765043} -- wpt-commits: c3ecc8c00ff6d95935969d8d5b74ea75b9636dba wpt-pr: 23385
25 lines
752 B
JavaScript
25 lines
752 B
JavaScript
// META: global=window,worker
|
|
// META: script=/resources/WebIDLParser.js
|
|
// META: script=/resources/idlharness.js
|
|
// META: timeout=long
|
|
|
|
'use strict';
|
|
|
|
// https://wicg.github.io/background-fetch/
|
|
|
|
idl_test(
|
|
['background-fetch'],
|
|
['service-workers', 'html', 'dom'],
|
|
idl_array => {
|
|
const isServiceWorker = location.pathname.includes('.serviceworker.');
|
|
if (isServiceWorker) {
|
|
idl_array.add_objects({
|
|
ServiceWorkerGlobalScope: ['self'],
|
|
ServiceWorkerRegistration: ['registration'],
|
|
BackgroundFetchManager: ['registration.backgroundFetch'],
|
|
BackgroundFetchEvent: ['new BackgroundFetchEvent("type")'],
|
|
BackgroundFetchUpdateEvent: ['new BackgroundFetchUpdateEvent("type")'],
|
|
});
|
|
}
|
|
}
|
|
);
|