| Index: third_party/WebKit/LayoutTests/http/tests/inspector/service-workers/lazy-addeventlisteners.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/service-workers/lazy-addeventlisteners.html b/third_party/WebKit/LayoutTests/http/tests/inspector/service-workers/lazy-addeventlisteners.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..49e144ac6e87ddd41ed78c30b48686073b6bcb43
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/inspector/service-workers/lazy-addeventlisteners.html
|
| @@ -0,0 +1,22 @@
|
| +<html>
|
| +<head>
|
| +<script src="../inspector-test.js"></script>
|
| +<script src="../console-test.js"></script>
|
| +<script src="service-workers-test.js"></script>
|
| +<script>
|
| +function test()
|
| +{
|
| + var scriptURL = "http://127.0.0.1:8000/inspector/service-workers/resources/service-worker-lazy-addeventlistener.js";
|
| + var scope = "http://127.0.0.1:8000/inspector/service-workers/resources/lazy-scope";
|
| + InspectorTest.waitForConsoleMessages(1, () => {
|
| + InspectorTest.dumpConsoleMessages();
|
| + InspectorTest.completeTest();
|
| + });
|
| + InspectorTest.registerServiceWorker(scriptURL, scope);
|
| +}
|
| +</script>
|
| +</head>
|
| +<body onload="runTest()">
|
| +<p>Tests that a warining is shown in the console if addEventListner is called after initial evaluation of the service worker script.</p>
|
| +</body>
|
| +</html>
|
|
|