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(SDK.DebuggerModel.Pause
OnExceptionsState.DontPauseOnExceptions); | 66 InspectorTest.DebuggerAgent.setPauseOnExceptions(SDK.DebuggerModel.Pause
OnExceptionsState.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 = Components.domBreakpointsSidebarPane; | |
75 InspectorTest.addResult("Set up DOM breakpoints."); | 74 InspectorTest.addResult("Set up DOM breakpoints."); |
76 pane._setBreakpoint(node, Components.DOMBreakpointsSidebarPane.Breakpoin
tTypes.SubtreeModified, true); | 75 InspectorTest.domDebuggerModel.setDOMBreakpoint(node, SDK.DOMDebuggerMod
el.DOMBreakpoint.Type.SubtreeModified); |
77 pane._setBreakpoint(node, Components.DOMBreakpointsSidebarPane.Breakpoin
tTypes.AttributeModified, true); | 76 InspectorTest.domDebuggerModel.setDOMBreakpoint(node, SDK.DOMDebuggerMod
el.DOMBreakpoint.Type.AttributeModified); |
78 pane._setBreakpoint(node, Components.DOMBreakpointsSidebarPane.Breakpoin
tTypes.NodeRemoved, true); | 77 InspectorTest.domDebuggerModel.setDOMBreakpoint(node, SDK.DOMDebuggerMod
el.DOMBreakpoint.Type.NodeRemoved); |
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 InspectorTest.addResult("Set up Event breakpoints."); | 84 InspectorTest.addResult("Set up Event breakpoints."); |
86 InspectorTest.setEventListenerBreakpoint("listener:click", true); | 85 InspectorTest.setEventListenerBreakpoint("listener:click", true); |
87 InspectorTest.deprecatedRunAfterPendingDispatches(didSetUp); | 86 InspectorTest.deprecatedRunAfterPendingDispatches(didSetUp); |
88 } | 87 } |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 | 143 |
145 </head> | 144 </head> |
146 | 145 |
147 <body onload="runTest()"> | 146 <body onload="runTest()"> |
148 <p>Tests that 'skip all pauses' mode blocks breakpoint and gets cancelled right
at page reload. | 147 <p>Tests that 'skip all pauses' mode blocks breakpoint and gets cancelled right
at page reload. |
149 </p> | 148 </p> |
150 | 149 |
151 <div id="element" onclick="return 0;"></div> | 150 <div id="element" onclick="return 0;"></div> |
152 </body> | 151 </body> |
153 </html> | 152 </html> |
OLD | NEW |