fune/testing/web-platform/tests/background-fetch/idlharness.https.any.js
Stephen McGruer 2084f2b8af Bug 1635141 [wpt PR 23385] - Mark some idlharness.html tests as timeout=long, a=testonly
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
2020-05-20 10:28:04 +00:00

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")'],
});
}
}
);