| Index: third_party/WebKit/LayoutTests/external/wpt/background-fetch/idl-tests.html
|
| diff --git a/third_party/WebKit/LayoutTests/external/wpt/background-fetch/idl-tests.html b/third_party/WebKit/LayoutTests/external/wpt/background-fetch/idl-tests.html
|
| index 985d0c5be87b64757ce04a6bcfd777ba79ba10dc..8b498ea324e9669a0231547a52f54a9be352ac17 100644
|
| --- a/third_party/WebKit/LayoutTests/external/wpt/background-fetch/idl-tests.html
|
| +++ b/third_party/WebKit/LayoutTests/external/wpt/background-fetch/idl-tests.html
|
| @@ -11,65 +11,21 @@
|
| <body>
|
| <!-- Setup -->
|
| <script type=text/plain id='untested_idl'>
|
| - interface ServiceWorkerGlobalScope {
|
| - };
|
| interface ServiceWorkerRegistration {
|
| };
|
| </script>
|
| <script type=text/plain id='idl_for_testing'>
|
| - partial interface ServiceWorkerGlobalScope {
|
| - attribute EventHandler onbackgroundfetched;
|
| - attribute EventHandler onbackgroundfetchfail;
|
| - attribute EventHandler onbackgroundfetchabort;
|
| - attribute EventHandler onbackgroundfetchclick;
|
| - };
|
| -
|
| partial interface ServiceWorkerRegistration {
|
| readonly attribute BackgroundFetchManager backgroundFetch;
|
| };
|
| -
|
| - [Exposed=(Window,Worker)]
|
| - interface BackgroundFetchManager {
|
| - Promise<BackgroundFetchRegistration> fetch(DOMString tag,
|
| - (RequestInfo or sequence<RequestInfo>) requests,
|
| - optional BackgroundFetchOptions options);
|
| - Promise<BackgroundFetchRegistration?> get(DOMString tag);
|
| - Promise<sequence<DOMString>> getTags();
|
| - };
|
| -
|
| - dictionary IconDefinition {
|
| - DOMString src;
|
| - DOMString sizes;
|
| - DOMString type;
|
| - };
|
| -
|
| - dictionary BackgroundFetchOptions {
|
| - sequence<IconDefinition> icons;
|
| - DOMString title;
|
| - long totalDownloadSize;
|
| - };
|
|
|
| [Exposed=(Window,Worker)]
|
| - interface BackgroundFetchActiveFetches : BackgroundFetchFetches {
|
| - readonly attribute Promise<Response> responseReady;
|
| - };
|
| -
|
| - [Exposed=(Window,Worker)]
|
| - interface BackgroundFetchRegistration {
|
| - readonly attribute DOMString tag;
|
| - readonly attribute FrozenArray<IconDefinition> icons;
|
| - readonly attribute long totalDownloadSize;
|
| - readonly attribute DOMString title;
|
| - readonly attribute FrozenArray<BackgroundFetchActiveFetches> fetches;
|
| -
|
| - void abort();
|
| - };
|
| + interface BackgroundFetchManager {
|
| + // TODO(awdf) Add fetch & get methods.
|
|
|
| - [Exposed=(Window,Worker)]
|
| - interface BackgroundFetchFetches {
|
| - readonly attribute Request request;
|
| + // TODO(awdf) getTags returned promise should contain a FrozenArray.
|
| + Promise<DOMString> getTags();
|
| };
|
| -
|
| </script>
|
|
|
| <!-- Tests -->
|
|
|