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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/onactivate-throw-error-from-nested-event-worker.js

Issue 2873373004: Remove duplicate service worker test (Closed)
Patch Set: Remove unnecessary precaution 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-from-nested-event-worker.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/onactivate-throw-error-from-nested-event-worker.js b/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/onactivate-throw-error-from-nested-event-worker.js
deleted file mode 100644
index 7c97014fd042affbd38d77fa538d8a584d7c72f7..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/onactivate-throw-error-from-nested-event-worker.js
+++ /dev/null
@@ -1,13 +0,0 @@
-var max_nesting_level = 8;
-
-self.addEventListener('message', function(event) {
- var level = event.data;
- if (level < max_nesting_level)
- dispatchEvent(new MessageEvent('message', { data: level + 1 }));
- throw Error('error at level ' + level);
- });
-
-self.addEventListener('activate', function(event) {
- dispatchEvent(new MessageEvent('message', { data: 1 }));
- });
-

Powered by Google App Engine
This is Rietveld 408576698