| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 InspectorTest.addResult("Set up to pause on all exceptions."); | 64 InspectorTest.addResult("Set up to pause on all exceptions."); |
| 65 // FIXME: Test is flaky with PauseOnAllExceptions due to races in debugg
er. | 65 // FIXME: Test is flaky with PauseOnAllExceptions due to races in debugg
er. |
| 66 InspectorTest.DebuggerAgent.setPauseOnExceptions(WebInspector.DebuggerMo
del.PauseOnExceptionsState.DontPauseOnExceptions); | 66 InspectorTest.DebuggerAgent.setPauseOnExceptions(WebInspector.DebuggerMo
del.PauseOnExceptionsState.DontPauseOnExceptions); |
| 67 InspectorTest.nodeWithId("element", didResolveNode); | 67 InspectorTest.nodeWithId("element", didResolveNode); |
| 68 testRunner.logToStderr("didShowScriptSource"); | 68 testRunner.logToStderr("didShowScriptSource"); |
| 69 } | 69 } |
| 70 | 70 |
| 71 function didResolveNode(node) | 71 function didResolveNode(node) |
| 72 { | 72 { |
| 73 testRunner.logToStderr("didResolveNode"); | 73 testRunner.logToStderr("didResolveNode"); |
| 74 var pane = WebInspector.domBreakpointsSidebarPane; | |
| 75 InspectorTest.addResult("Set up DOM breakpoints."); | 74 InspectorTest.addResult("Set up DOM breakpoints."); |
| 76 pane._setBreakpoint(node, pane._breakpointTypes.SubtreeModified, true); | 75 WebInspector.domBreakpointManager.setBreakpoint(node, WebInspector.DOMBr
eakpointsSidebarPane.BreakpointTypes.SubtreeModified, true); |
| 77 pane._setBreakpoint(node, pane._breakpointTypes.AttributeModified, true)
; | 76 WebInspector.domBreakpointManager.setBreakpoint(node, WebInspector.DOMBr
eakpointsSidebarPane.BreakpointTypes.AttributeModified, true); |
| 78 pane._setBreakpoint(node, pane._breakpointTypes.NodeRemoved, true); | 77 WebInspector.domBreakpointManager.setBreakpoint(node, WebInspector.DOMBr
eakpointsSidebarPane.BreakpointTypes.NodeRemoved, true); |
| 79 setUpEventBreakpoints(); | 78 setUpEventBreakpoints(); |
| 80 } | 79 } |
| 81 | 80 |
| 82 function setUpEventBreakpoints() | 81 function setUpEventBreakpoints() |
| 83 { | 82 { |
| 84 testRunner.logToStderr("setUpEventBreakpoints"); | 83 testRunner.logToStderr("setUpEventBreakpoints"); |
| 85 var pane = self.runtime.sharedInstance(WebInspector.EventListenerBreakpo
intsSidebarPane); | 84 var pane = self.runtime.sharedInstance(WebInspector.EventListenerBreakpo
intsSidebarPane); |
| 86 InspectorTest.addResult("Set up Event breakpoints."); | 85 InspectorTest.addResult("Set up Event breakpoints."); |
| 87 pane._setBreakpoint("listener:click"); | 86 pane._setBreakpoint("listener:click"); |
| 88 InspectorTest.deprecatedRunAfterPendingDispatches(didSetUp); | 87 InspectorTest.deprecatedRunAfterPendingDispatches(didSetUp); |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 | 145 |
| 147 </head> | 146 </head> |
| 148 | 147 |
| 149 <body onload="runTest()"> | 148 <body onload="runTest()"> |
| 150 <p>Tests that 'skip all pauses' mode blocks breakpoint and gets cancelled right
at page reload. | 149 <p>Tests that 'skip all pauses' mode blocks breakpoint and gets cancelled right
at page reload. |
| 151 </p> | 150 </p> |
| 152 | 151 |
| 153 <div id="element" onclick="return 0;"></div> | 152 <div id="element" onclick="return 0;"></div> |
| 154 </body> | 153 </body> |
| 155 </html> | 154 </html> |
| OLD | NEW |