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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/service-workers/resources/service-worker-lazy-addeventlistener.js

Issue 2319563003: ServiceWorker: Shows a warning when adding event handlers asynchronously (Closed)
Patch Set: Fixed indent Created 4 years, 3 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/inspector/service-workers/resources/service-worker-lazy-addeventlistener.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/service-workers/resources/service-worker-lazy-addeventlistener.js b/third_party/WebKit/LayoutTests/http/tests/inspector/service-workers/resources/service-worker-lazy-addeventlistener.js
new file mode 100644
index 0000000000000000000000000000000000000000..b4ef54cd1f923d11ed37a3ec058d3b865a689dea
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/service-workers/resources/service-worker-lazy-addeventlistener.js
@@ -0,0 +1,7 @@
+setTimeout(() => {
+ addEventListener('install', () => {
+ console.log('Here is in installing.');
+ });
+ console.log('Here is in setTimeout.');
+ }, 10);
falken 2016/09/20 01:46:41 setTimeout is always unfortunate: it places a lowe
shimazu 2016/09/20 06:07:52 Done.
+console.log('Here is in the first execution.');
falken 2016/09/20 01:46:41 I think you could simplify the test by removing th
shimazu 2016/09/20 06:07:52 Done.

Powered by Google App Engine
This is Rietveld 408576698