Index: LayoutTests/http/tests/cachestorage/script-tests/cache-delete.js |
diff --git a/LayoutTests/http/tests/serviceworker/resources/cache-delete-worker.js b/LayoutTests/http/tests/cachestorage/script-tests/cache-delete.js |
similarity index 95% |
copy from LayoutTests/http/tests/serviceworker/resources/cache-delete-worker.js |
copy to LayoutTests/http/tests/cachestorage/script-tests/cache-delete.js |
index 98204fddf96e73ec4f14155b08055a4e6833b0dc..a6db4c1851ad72a55ae34772f199056cc23cedaf 100644 |
--- a/LayoutTests/http/tests/serviceworker/resources/cache-delete-worker.js |
+++ b/LayoutTests/http/tests/cachestorage/script-tests/cache-delete.js |
@@ -1,5 +1,8 @@ |
-importScripts('worker-testharness.js'); |
-importScripts('/resources/testharness-helpers.js'); |
+if (self.importScripts) { |
+ importScripts('/resources/testharness.js'); |
+ importScripts('/resources/testharness-helpers.js'); |
+ importScripts('../resources/test-helpers.js'); |
+} |
var test_url = 'https://example.com/foo'; |
@@ -114,3 +117,5 @@ function prepopulated_cache_test(test_function, description) { |
}); |
}, description); |
} |
+ |
+done(); |