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

Unified Diff: third_party/WebKit/LayoutTests/inspector/elements/event-listener-sidebar.html

Issue 1879293002: Modify devtools to show passive event listeners. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 years, 8 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/inspector/elements/event-listener-sidebar.html
diff --git a/third_party/WebKit/LayoutTests/inspector/elements/event-listener-sidebar.html b/third_party/WebKit/LayoutTests/inspector/elements/event-listener-sidebar.html
index fa7e35d0cea91b32722ced6e31474cdcd4b16b03..dc15db627d55776d26584f5a076b0589a4dfc7f2 100644
--- a/third_party/WebKit/LayoutTests/inspector/elements/event-listener-sidebar.html
+++ b/third_party/WebKit/LayoutTests/inspector/elements/event-listener-sidebar.html
@@ -30,6 +30,9 @@ function setupEventListeners()
EventListenerImpl.prototype.toString = function() { return "EventListenerImpl"; }
EventListenerImpl.prototype.handleEvent = function() { console.log("click - document - handleEvent"); }
new EventListenerImpl();
+ document.body.addEventListener("wheel", f, {"passive": true});
+ document.body.addEventListener("wheel", f, {"passive": true, "capture": true});
+ document.body.removeEventListener("wheel", f, {"passive": true, "capture": true});
}
function test()

Powered by Google App Engine
This is Rietveld 408576698