Index: LayoutTests/http/tests/serviceworker/resources/interfaces-worker.js |
diff --git a/LayoutTests/http/tests/serviceworker/resources/interfaces-worker.js b/LayoutTests/http/tests/serviceworker/resources/interfaces-worker.js |
index c7ba0a01849409cc4fda7e426508fce3bf2fd86a..a8b9d7b75eda9ccbe36d95f85a84a2a02fad4a0f 100644 |
--- a/LayoutTests/http/tests/serviceworker/resources/interfaces-worker.js |
+++ b/LayoutTests/http/tests/serviceworker/resources/interfaces-worker.js |
@@ -1,5 +1,6 @@ |
importScripts('interfaces.js'); |
importScripts('worker-testharness.js'); |
+importScripts('/resources/testharness-helpers.js'); |
test(function() { |
var EVENT_HANDLER = 'object'; |
@@ -37,3 +38,20 @@ test(function() { |
keys: 'function' |
}); |
}, 'Interfaces and attributes in ServiceWorkerGlobalScope'); |
+ |
+promise_test(function(t) { |
+ return create_temporary_cache(t) |
+ .then(function(cache) { |
+ verifyInterface('Cache', |
+ cache, |
+ { |
+ match: 'function', |
+ matchAll: 'function', |
+ add: 'function', |
+ addAll: 'function', |
+ put: 'function', |
+ delete: 'function', |
+ keys: 'function' |
+ }); |
+ }); |
+ }, 'Cache'); |