Chromium Code Reviews| 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.
|