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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/service-workers/lazy-addeventlisteners.html

Issue 2319563003: ServiceWorker: Shows a warning when adding event handlers asynchronously (Closed)
Patch Set: Rebased and updated the expectation 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/service-workers/lazy-addeventlisteners-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/service-workers/lazy-addeventlisteners-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698