Update web-platform-tests to revision 4333a1d2f109795547fc5e22ebfc8481fa649de7

This commit is contained in:
WPT Sync Bot 2018-06-22 21:05:34 -04:00
parent 728ebcc932
commit 8c46b67f8e
456 changed files with 10561 additions and 5108 deletions

View file

@ -1,4 +1,7 @@
// 4.1. Extensions to ServiceWorkerGlobalScope
// GENERATED CONTENT - DO NOT EDIT
// Content of this file was automatically extracted from the
// "Background Fetch" spec.
// See: https://wicg.github.io/background-fetch/
partial interface ServiceWorkerGlobalScope {
attribute EventHandler onbackgroundfetched;
@ -7,14 +10,10 @@ partial interface ServiceWorkerGlobalScope {
attribute EventHandler onbackgroundfetchclick;
};
// 4.2. Extensions to ServiceWorkerRegistration
partial interface ServiceWorkerRegistration {
readonly attribute BackgroundFetchManager backgroundFetch;
};
// 4.3. BackgroundFetchManager
[Exposed=(Window,Worker)]
interface BackgroundFetchManager {
Promise<BackgroundFetchRegistration> fetch(DOMString id, (RequestInfo or sequence<RequestInfo>) requests, optional BackgroundFetchOptions options);
@ -24,21 +23,19 @@ interface BackgroundFetchManager {
};
dictionary BackgroundFetchOptions {
sequence<IconDefinition> icons;
DOMString title;
unsigned long long downloadTotal;
sequence<IconDefinition> icons = [];
DOMString title = "";
unsigned long long downloadTotal = 0;
};
// This is taken from https://w3c.github.io/manifest/#icons-member.
// This definition should probably be moved somewhere more general.
dictionary IconDefinition {
DOMString src;
DOMString sizes;
DOMString type;
DOMString sizes = "";
DOMString type = "";
};
// 4.4. BackgroundFetchRegistration
[Exposed=(Window,Worker)]
interface BackgroundFetchRegistration : EventTarget {
readonly attribute DOMString id;
@ -70,8 +67,6 @@ interface BackgroundFetchActiveFetch : BackgroundFetchFetch {
// In future this will include a fetch observer
};
// 4.4.3. BackgroundFetchEvent
[Constructor(DOMString type, BackgroundFetchEventInit init), Exposed=ServiceWorker]
interface BackgroundFetchEvent : ExtendableEvent {
readonly attribute DOMString id;
@ -81,8 +76,6 @@ dictionary BackgroundFetchEventInit : ExtendableEventInit {
required DOMString id;
};
// 4.4.4. BackgroundFetchSettledEvent
[Constructor(DOMString type, BackgroundFetchSettledEventInit init), Exposed=ServiceWorker]
interface BackgroundFetchSettledEvent : BackgroundFetchEvent {
readonly attribute BackgroundFetchSettledFetches fetches;
@ -103,15 +96,11 @@ interface BackgroundFetchSettledFetch : BackgroundFetchFetch {
readonly attribute Response? response;
};
// 4.4.5. BackgroundFetchUpdateEvent
[Constructor(DOMString type, BackgroundFetchSettledEventInit init), Exposed=ServiceWorker]
interface BackgroundFetchUpdateEvent : BackgroundFetchSettledEvent {
Promise<void> updateUI(DOMString title);
};
// 4.4.6. BackgroundFetchClickEvent
[Constructor(DOMString type, BackgroundFetchClickEventInit init), Exposed=ServiceWorker]
interface BackgroundFetchClickEvent : BackgroundFetchEvent {
readonly attribute BackgroundFetchState state;