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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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; | 74 var pane = WebInspector.domBreakpointsSidebarPane; |
| 75 var domDebuggerModel = pane.domDebuggerModel(); |
75 InspectorTest.addResult("Set up DOM breakpoints."); | 76 InspectorTest.addResult("Set up DOM breakpoints."); |
76 pane._setBreakpoint(node, pane._breakpointTypes.SubtreeModified, true); | 77 domDebuggerModel.setBreakpoint(node, pane._breakpointTypes.SubtreeModifi
ed, true); |
77 pane._setBreakpoint(node, pane._breakpointTypes.AttributeModified, true)
; | 78 domDebuggerModel.setBreakpoint(node, pane._breakpointTypes.AttributeModi
fied, true); |
78 pane._setBreakpoint(node, pane._breakpointTypes.NodeRemoved, true); | 79 domDebuggerModel.setBreakpoint(node, pane._breakpointTypes.NodeRemoved,
true); |
79 setUpEventBreakpoints(); | 80 setUpEventBreakpoints(); |
80 } | 81 } |
81 | 82 |
82 function setUpEventBreakpoints() | 83 function setUpEventBreakpoints() |
83 { | 84 { |
84 testRunner.logToStderr("setUpEventBreakpoints"); | 85 testRunner.logToStderr("setUpEventBreakpoints"); |
85 var pane = WebInspector.panels.sources.sidebarPanes.eventListenerBreakpo
ints; | 86 var pane = WebInspector.panels.sources.sidebarPanes.eventListenerBreakpo
ints; |
86 InspectorTest.addResult("Set up Event breakpoints."); | 87 InspectorTest.addResult("Set up Event breakpoints."); |
87 pane._setBreakpoint("listener:click"); | 88 pane._setBreakpoint("listener:click"); |
88 InspectorTest.deprecatedRunAfterPendingDispatches(didSetUp); | 89 InspectorTest.deprecatedRunAfterPendingDispatches(didSetUp); |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 | 147 |
147 </head> | 148 </head> |
148 | 149 |
149 <body onload="runTest()"> | 150 <body onload="runTest()"> |
150 <p>Tests that 'skip all pauses' mode blocks breakpoint and gets cancelled right
at page reload. | 151 <p>Tests that 'skip all pauses' mode blocks breakpoint and gets cancelled right
at page reload. |
151 </p> | 152 </p> |
152 | 153 |
153 <div id="element" onclick="return 0;"></div> | 154 <div id="element" onclick="return 0;"></div> |
154 </body> | 155 </body> |
155 </html> | 156 </html> |
OLD | NEW |