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

Unified Diff: LayoutTests/inspector/console/command-line-api-getEventListeners-expected.txt

Issue 48363002: DevTools: Improve CommandLineAPI's getEventListeners result. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: removed try-catch Created 7 years, 2 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: LayoutTests/inspector/console/command-line-api-getEventListeners-expected.txt
diff --git a/LayoutTests/inspector/console/command-line-api-getEventListeners-expected.txt b/LayoutTests/inspector/console/command-line-api-getEventListeners-expected.txt
index 97a01d073e1d33ef7965d9244349cf770be13358..b8b6e34d133c58a32f0dc6beae57784da1286a53 100644
--- a/LayoutTests/inspector/console/command-line-api-getEventListeners-expected.txt
+++ b/LayoutTests/inspector/console/command-line-api-getEventListeners-expected.txt
@@ -6,10 +6,23 @@ keydown: {
0: {
listener: function listener1() { }
useCapture: false
+ type: "keydown"
+ remove: function () { node.removeEventListener(this.type, this.listener, this.useCapture) }
}
1: {
listener: function listener2() { }
useCapture: true
+ type: "keydown"
+ remove: function () { node.removeEventListener(this.type, this.listener, this.useCapture) }
+ }
+}
+- inner after a removal -
+keydown: {
+ 0: {
+ listener: function listener2() { }
+ useCapture: true
+ type: "keydown"
+ remove: function () { node.removeEventListener(this.type, this.listener, this.useCapture) }
}
}
- outer -
@@ -17,18 +30,24 @@ mousemove: {
0: {
listener: function listener1() { }
useCapture: false
+ type: "mousemove"
+ remove: function () { node.removeEventListener(this.type, this.listener, this.useCapture) }
}
}
mousedown: {
0: {
listener: function listener2() { }
useCapture: true
+ type: "mousedown"
+ remove: function () { node.removeEventListener(this.type, this.listener, this.useCapture) }
}
}
keydown: {
0: {
listener: function listener2() { }
useCapture: true
+ type: "keydown"
+ remove: function () { node.removeEventListener(this.type, this.listener, this.useCapture) }
}
}
- attribute event listeners -
@@ -36,12 +55,16 @@ click: {
0: {
listener: function onclick(event) { alert(1) }
useCapture: false
+ type: "click"
+ remove: function () { node.removeEventListener(this.type, this.listener, this.useCapture) }
}
}
mouseover: {
0: {
listener: function onmouseover(event) { listener2() }
useCapture: false
+ type: "mouseover"
+ remove: function () { node.removeEventListener(this.type, this.listener, this.useCapture) }
}
}
- empty -
« no previous file with comments | « LayoutTests/inspector/console/command-line-api-getEventListeners.html ('k') | Source/core/inspector/InjectedScriptSource.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698