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..39546d169c1a6f8c2d3fd4cce8fb5e79b505231b 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,19 @@ |
<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 { |
+ interface BackgroundFetchManager { |
+ // TODO(awdf) Should be a method returning a promise. |
readonly attribute DOMString tag; |
- readonly attribute FrozenArray<IconDefinition> icons; |
- readonly attribute long totalDownloadSize; |
- readonly attribute DOMString title; |
- readonly attribute FrozenArray<BackgroundFetchActiveFetches> fetches; |
- |
- void abort(); |
}; |
- |
- [Exposed=(Window,Worker)] |
- interface BackgroundFetchFetches { |
- readonly attribute Request request; |
- }; |
- |
</script> |
<!-- Tests --> |