| 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/elements-test.js"></script> | 4 <script src="../../../http/tests/inspector/elements-test.js"></script> |
| 5 <script src="../../../http/tests/inspector/debugger-test.js"></script> | 5 <script src="../../../http/tests/inspector/debugger-test.js"></script> |
| 6 <script> | 6 <script> |
| 7 | 7 |
| 8 function testFunction() | 8 function testFunction() |
| 9 { | 9 { |
| 10 console.log("Begin"); | 10 console.log("Begin"); |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 InspectorTest.addResult("Set up DOM breakpoints."); | 74 InspectorTest.addResult("Set up DOM breakpoints."); |
| 75 pane._setBreakpoint(node, pane._breakpointTypes.SubtreeModified, true); | 75 pane._setBreakpoint(node, pane._breakpointTypes.SubtreeModified, true); |
| 76 pane._setBreakpoint(node, pane._breakpointTypes.AttributeModified, true)
; | 76 pane._setBreakpoint(node, pane._breakpointTypes.AttributeModified, true)
; |
| 77 pane._setBreakpoint(node, pane._breakpointTypes.NodeRemoved, true); | 77 pane._setBreakpoint(node, pane._breakpointTypes.NodeRemoved, true); |
| 78 setUpEventBreakpoints(); | 78 setUpEventBreakpoints(); |
| 79 } | 79 } |
| 80 | 80 |
| 81 function setUpEventBreakpoints() | 81 function setUpEventBreakpoints() |
| 82 { | 82 { |
| 83 WebInspector.inspectorView.showPanel("sources"); | 83 WebInspector.inspectorView.showPanel("sources"); |
| 84 var pane = WebInspector.panels.sources.sidebarPanes.eventListenerBreakpo
ints; | 84 var pane = WebInspector.inspectorView.panel("sources").sidebarPanes.even
tListenerBreakpoints; |
| 85 InspectorTest.addResult("Set up Event breakpoints."); | 85 InspectorTest.addResult("Set up Event breakpoints."); |
| 86 pane._setBreakpoint("listener:click"); | 86 pane._setBreakpoint("listener:click"); |
| 87 InspectorTest.runAfterPendingDispatches(didSetUp); | 87 InspectorTest.runAfterPendingDispatches(didSetUp); |
| 88 } | 88 } |
| 89 | 89 |
| 90 function didSetUp() | 90 function didSetUp() |
| 91 { | 91 { |
| 92 InspectorTest.addResult("Did set up."); | 92 InspectorTest.addResult("Did set up."); |
| 93 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause); | 93 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause); |
| 94 } | 94 } |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 | 130 |
| 131 </head> | 131 </head> |
| 132 | 132 |
| 133 <body onload="runTest()"> | 133 <body onload="runTest()"> |
| 134 <p>Tests that 'skip all pauses' mode blocks breakpoint and gets cancelled right
at page reload. | 134 <p>Tests that 'skip all pauses' mode blocks breakpoint and gets cancelled right
at page reload. |
| 135 </p> | 135 </p> |
| 136 | 136 |
| 137 <div id="element" onclick="return 0;"></div> | 137 <div id="element" onclick="return 0;"></div> |
| 138 </body> | 138 </body> |
| 139 </html> | 139 </html> |
| OLD | NEW |