Chromium Code Reviews| 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..cf6d8ae1943680b856df7f5024b7ff2fafa5eaa0 |
| --- /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(3, () => { |
| + InspectorTest.dumpConsoleMessages(); |
| + InspectorTest.completeTest(); |
| + }); |
| + InspectorTest.registerServiceWorker(scriptURL, scope); |
| +} |
| +</script> |
| +</head> |
| +<body onload="runTest()"> |
| +<p>Warning should be shown at the console when calling addEventListener after the first evaluation.</p> |
|
falken
2016/09/20 01:46:41
"the first evaluation" is ambiguous.
"Tests that
shimazu
2016/09/20 06:07:52
Done.
|
| +</body> |
| +</html> |