OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../http/tests/inspector/inspector-test.js"></script> |
4 <script src="../../http/tests/inspector/debugger-test.js"></script> | 4 <script src="../../http/tests/inspector/debugger-test.js"></script> |
5 <script> | 5 <script> |
6 | 6 |
7 function listener1() | 7 function listener1() |
8 { | 8 { |
9 } | 9 } |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 var element = document.getElementById("test"); | 21 var element = document.getElementById("test"); |
22 element.addEventListener("click", listener1, true); | 22 element.addEventListener("click", listener1, true); |
23 element.addEventListener("click", listener2, true); | 23 element.addEventListener("click", listener2, true); |
24 document.body.addEventListener("click", listener3, true); | 24 document.body.addEventListener("click", listener3, true); |
25 document.body.addEventListener("click", listener3, false); | 25 document.body.addEventListener("click", listener3, false); |
26 element.click(); | 26 element.click(); |
27 } | 27 } |
28 | 28 |
29 function test() | 29 function test() |
30 { | 30 { |
31 var pane = WebInspector.showPanel("scripts").sidebarPanes.eventListenerBreak
points; | 31 var pane = WebInspector.showPanel("sources").sidebarPanes.eventListenerBreak
points; |
32 InspectorTest.runDebuggerTestSuite([ | 32 InspectorTest.runDebuggerTestSuite([ |
33 function testClickBreakpoint(next) | 33 function testClickBreakpoint(next) |
34 { | 34 { |
35 pane._setBreakpoint("listener:click"); | 35 pane._setBreakpoint("listener:click"); |
36 InspectorTest.waitUntilPaused(paused1); | 36 InspectorTest.waitUntilPaused(paused1); |
37 InspectorTest.evaluateInPageWithTimeout("addListenerAndClick()"); | 37 InspectorTest.evaluateInPageWithTimeout("addListenerAndClick()"); |
38 | 38 |
39 function paused1(callFrames) | 39 function paused1(callFrames) |
40 { | 40 { |
41 InspectorTest.captureStackTrace(callFrames); | 41 InspectorTest.captureStackTrace(callFrames); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 <body onload="runTest()"> | 85 <body onload="runTest()"> |
86 <p> | 86 <p> |
87 Test that debugger will pause in all event listeners when corresponding breakpoi
nt is set. | 87 Test that debugger will pause in all event listeners when corresponding breakpoi
nt is set. |
88 <a href="https://bugs.webkit.org/show_bug.cgi?id=77331">Bug 77331.</a> | 88 <a href="https://bugs.webkit.org/show_bug.cgi?id=77331">Bug 77331.</a> |
89 </p> | 89 </p> |
90 | 90 |
91 <input type=button id="test"></input> | 91 <input type=button id="test"></input> |
92 | 92 |
93 </body> | 93 </body> |
94 </html> | 94 </html> |
OLD | NEW |