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

Side by Side 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, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 Tests getEventListeners() method of console command line API. 1 Tests getEventListeners() method of console command line API.
2 2
3 3
4 - inner - 4 - inner -
5 keydown: { 5 keydown: {
6 0: { 6 0: {
7 listener: function listener1() { } 7 listener: function listener1() { }
8 useCapture: false 8 useCapture: false
9 type: "keydown"
10 remove: function () { node.removeEventListener(this.type, this.listener, this.useCapture) }
9 } 11 }
10 1: { 12 1: {
11 listener: function listener2() { } 13 listener: function listener2() { }
12 useCapture: true 14 useCapture: true
15 type: "keydown"
16 remove: function () { node.removeEventListener(this.type, this.listener, this.useCapture) }
17 }
18 }
19 - inner after a removal -
20 keydown: {
21 0: {
22 listener: function listener2() { }
23 useCapture: true
24 type: "keydown"
25 remove: function () { node.removeEventListener(this.type, this.listener, this.useCapture) }
13 } 26 }
14 } 27 }
15 - outer - 28 - outer -
16 mousemove: { 29 mousemove: {
17 0: { 30 0: {
18 listener: function listener1() { } 31 listener: function listener1() { }
19 useCapture: false 32 useCapture: false
33 type: "mousemove"
34 remove: function () { node.removeEventListener(this.type, this.listener, this.useCapture) }
20 } 35 }
21 } 36 }
22 mousedown: { 37 mousedown: {
23 0: { 38 0: {
24 listener: function listener2() { } 39 listener: function listener2() { }
25 useCapture: true 40 useCapture: true
41 type: "mousedown"
42 remove: function () { node.removeEventListener(this.type, this.listener, this.useCapture) }
26 } 43 }
27 } 44 }
28 keydown: { 45 keydown: {
29 0: { 46 0: {
30 listener: function listener2() { } 47 listener: function listener2() { }
31 useCapture: true 48 useCapture: true
49 type: "keydown"
50 remove: function () { node.removeEventListener(this.type, this.listener, this.useCapture) }
32 } 51 }
33 } 52 }
34 - attribute event listeners - 53 - attribute event listeners -
35 click: { 54 click: {
36 0: { 55 0: {
37 listener: function onclick(event) { alert(1) } 56 listener: function onclick(event) { alert(1) }
38 useCapture: false 57 useCapture: false
58 type: "click"
59 remove: function () { node.removeEventListener(this.type, this.listener, this.useCapture) }
39 } 60 }
40 } 61 }
41 mouseover: { 62 mouseover: {
42 0: { 63 0: {
43 listener: function onmouseover(event) { listener2() } 64 listener: function onmouseover(event) { listener2() }
44 useCapture: false 65 useCapture: false
66 type: "mouseover"
67 remove: function () { node.removeEventListener(this.type, this.listener, this.useCapture) }
45 } 68 }
46 } 69 }
47 - empty - 70 - empty -
48 - invalid - 71 - invalid -
49 - object - 72 - object -
50 undefined 73 undefined
51 - null - 74 - null -
52 undefined 75 undefined
53 - undefined - 76 - undefined -
54 undefined 77 undefined
55 - window - 78 - window -
56 undefined 79 undefined
57 80
OLDNEW
« 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