| 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 testElementClicked() | 7 function testElementClicked() |
| 8 { | 8 { |
| 9 return 0; | 9 return 0; |
| 10 } | 10 } |
| 11 | 11 |
| 12 function addListenerAndClick() | 12 function addListenerAndClick() |
| 13 { | 13 { |
| 14 var element = document.getElementById("test"); | 14 var element = document.getElementById("test"); |
| 15 element.addEventListener("click", testElementClicked, true); | 15 element.addEventListener("click", testElementClicked, true); |
| 16 element.click(); | 16 element.click(); |
| 17 } | 17 } |
| 18 | 18 |
| 19 function timerFired() | 19 function timerFired() |
| 20 { | 20 { |
| 21 return 0; | 21 return 0; |
| 22 } | 22 } |
| 23 | 23 |
| 24 function test() | 24 function test() |
| 25 { | 25 { |
| 26 WebInspector.showPanel("scripts"); | 26 WebInspector.showPanel("sources"); |
| 27 var pane = WebInspector.panels.scripts.sidebarPanes.eventListenerBreakpoints
; | 27 var pane = WebInspector.panels.sources.sidebarPanes.eventListenerBreakpoints
; |
| 28 InspectorTest.runDebuggerTestSuite([ | 28 InspectorTest.runDebuggerTestSuite([ |
| 29 function testClickBreakpoint(next) | 29 function testClickBreakpoint(next) |
| 30 { | 30 { |
| 31 pane._setBreakpoint("listener:click"); | 31 pane._setBreakpoint("listener:click"); |
| 32 InspectorTest.waitUntilPaused(paused); | 32 InspectorTest.waitUntilPaused(paused); |
| 33 InspectorTest.evaluateInPageWithTimeout("addListenerAndClick()"); | 33 InspectorTest.evaluateInPageWithTimeout("addListenerAndClick()"); |
| 34 | 34 |
| 35 function paused(callFrames) | 35 function paused(callFrames) |
| 36 { | 36 { |
| 37 InspectorTest.captureStackTrace(callFrames); | 37 InspectorTest.captureStackTrace(callFrames); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 66 | 66 |
| 67 <body onload="runTest()"> | 67 <body onload="runTest()"> |
| 68 <p> | 68 <p> |
| 69 Tests event listener breakpoints. | 69 Tests event listener breakpoints. |
| 70 </p> | 70 </p> |
| 71 | 71 |
| 72 <input type=button id="test"></input> | 72 <input type=button id="test"></input> |
| 73 | 73 |
| 74 </body> | 74 </body> |
| 75 </html> | 75 </html> |
| OLD | NEW |