| 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 src="../debugger/resources/framework.js"></script> | 6 <script src="../debugger/resources/framework.js"></script> |
| 7 <script> | 7 <script> |
| 8 | 8 |
| 9 function appendElement(parentId, childId) | 9 function appendElement(parentId, childId) |
| 10 { | 10 { |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 InspectorTest.setQuiet(true); | 78 InspectorTest.setQuiet(true); |
| 79 | 79 |
| 80 InspectorTest.runDebuggerTestSuite([ | 80 InspectorTest.runDebuggerTestSuite([ |
| 81 function testDOMBreakpoint(next) | 81 function testDOMBreakpoint(next) |
| 82 { | 82 { |
| 83 InspectorTest.nodeWithId("rootElement", step1); | 83 InspectorTest.nodeWithId("rootElement", step1); |
| 84 | 84 |
| 85 function step1(node) | 85 function step1(node) |
| 86 { | 86 { |
| 87 var pane = WebInspector.domBreakpointsSidebarPane; | 87 var pane = WebInspector.domBreakpointsSidebarPane; |
| 88 pane._setBreakpoint(node, pane._breakpointTypes.SubtreeModified,
true); | 88 WebInspector.domBreakpointManager.setBreakpoint(node, pane._brea
kpointTypes.SubtreeModified, true); |
| 89 InspectorTest.evaluateInPageWithTimeout("appendElement('rootElem
ent', 'childElement')"); | 89 InspectorTest.evaluateInPageWithTimeout("appendElement('rootElem
ent', 'childElement')"); |
| 90 InspectorTest.waitUntilPausedAndDumpStackAndResume(next); | 90 InspectorTest.waitUntilPausedAndDumpStackAndResume(next); |
| 91 } | 91 } |
| 92 }, | 92 }, |
| 93 | 93 |
| 94 function testXHRBreakpoint(next) | 94 function testXHRBreakpoint(next) |
| 95 { | 95 { |
| 96 var pane = self.runtime.sharedInstance(WebInspector.XHRBreakpointsSi
debarPane); | 96 var pane = self.runtime.sharedInstance(WebInspector.XHRBreakpointsSi
debarPane); |
| 97 pane._setBreakpoint("foo", true); | 97 pane._setBreakpoint("foo", true); |
| 98 InspectorTest.evaluateInPageWithTimeout("sendXHR('/foo?a=b')"); | 98 InspectorTest.evaluateInPageWithTimeout("sendXHR('/foo?a=b')"); |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 </head> | 175 </head> |
| 176 | 176 |
| 177 <body onload="runTest()"> | 177 <body onload="runTest()"> |
| 178 <p> | 178 <p> |
| 179 Tests framework black-boxing on DOM, XHR and Event breakpoints. | 179 Tests framework black-boxing on DOM, XHR and Event breakpoints. |
| 180 </p> | 180 </p> |
| 181 <div id="rootElement"></div> | 181 <div id="rootElement"></div> |
| 182 <input type=button id="test"></input> | 182 <input type=button id="test"></input> |
| 183 </body> | 183 </body> |
| 184 </html> | 184 </html> |
| OLD | NEW |