Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1817)

Unified Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/import-scripts-worker.js

Issue 2864783002: Upstream service wrkr `importScripts` tests to WPT (Closed)
Patch Set: Incorporate review feedback Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/get-version.php ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/import-scripts-worker.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/import-scripts-worker.js b/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/import-scripts-worker.js
deleted file mode 100644
index c3c5fac92cd1364495cb67d6c10aa8cab3128053..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/import-scripts-worker.js
+++ /dev/null
@@ -1,26 +0,0 @@
-importScripts('../../resources/testharness.js');
-
-let echo_output = null;
-
-// Tests importing a script that sets |echo_output| to the query string.
-function test_import(str) {
- importScripts('echo.php?' + str);
- assert_equals(echo_output, str);
-}
-
-test_import('root');
-test_import('root-and-message');
-
-self.addEventListener('install', () => {
- test_import('install');
- test_import('install-and-message');
- });
-
-self.addEventListener('message', e => {
- test_import('root-and-message');
- test_import('install-and-message');
- // TODO(falken): This should fail. The spec disallows importing a non-cached
- // script like this but currently Chrome and Firefox allow it.
- test_import('message');
- e.source.postMessage('OK');
- });
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/get-version.php ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698