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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/onactivate-throw-error-then-prevent-default-worker.js

Issue 2873373004: Remove duplicate service worker test (Closed)
Patch Set: Un-register workers following test completion 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
Index: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/onactivate-throw-error-then-prevent-default-worker.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/onactivate-throw-error-then-prevent-default-worker.js b/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/onactivate-throw-error-then-prevent-default-worker.js
deleted file mode 100644
index d56c95113917d8f18a7b510d01c307373b88e5d2..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/onactivate-throw-error-then-prevent-default-worker.js
+++ /dev/null
@@ -1,7 +0,0 @@
-// Ensure we can handle multiple error handlers. One error handler
-// calling preventDefault should cause the event to be treated as
-// handled.
-self.addEventListener('error', function(event) {});
-self.addEventListener('error', function(event) { event.preventDefault(); });
-self.addEventListener('error', function(event) {});
-self.addEventListener('activate', function(event) { throw new Error(); });

Powered by Google App Engine
This is Rietveld 408576698