Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-frameworks/frameworks-dom-xhr-event-breakpoints.html

Issue 2191183003: DevTools: extract model from DOMBreakpointsSidebarPane (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address CL feedback from PS6 Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
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 WebInspector.domBreakpointManager.setBreakpoint(node, WebInspect or.DOMBreakpointsSidebarPane.BreakpointTypes.SubtreeModified, true);
88 pane._setBreakpoint(node, pane._breakpointTypes.SubtreeModified, true);
89 InspectorTest.evaluateInPageWithTimeout("appendElement('rootElem ent', 'childElement')"); 88 InspectorTest.evaluateInPageWithTimeout("appendElement('rootElem ent', 'childElement')");
90 InspectorTest.waitUntilPausedAndDumpStackAndResume(next); 89 InspectorTest.waitUntilPausedAndDumpStackAndResume(next);
91 } 90 }
92 }, 91 },
93 92
94 function testXHRBreakpoint(next) 93 function testXHRBreakpoint(next)
95 { 94 {
96 var pane = self.runtime.sharedInstance(WebInspector.XHRBreakpointsSi debarPane); 95 var pane = self.runtime.sharedInstance(WebInspector.XHRBreakpointsSi debarPane);
97 pane._setBreakpoint("foo", true); 96 pane._setBreakpoint("foo", true);
98 InspectorTest.evaluateInPageWithTimeout("sendXHR('/foo?a=b')"); 97 InspectorTest.evaluateInPageWithTimeout("sendXHR('/foo?a=b')");
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 </head> 174 </head>
176 175
177 <body onload="runTest()"> 176 <body onload="runTest()">
178 <p> 177 <p>
179 Tests framework black-boxing on DOM, XHR and Event breakpoints. 178 Tests framework black-boxing on DOM, XHR and Event breakpoints.
180 </p> 179 </p>
181 <div id="rootElement"></div> 180 <div id="rootElement"></div>
182 <input type=button id="test"></input> 181 <input type=button id="test"></input>
183 </body> 182 </body>
184 </html> 183 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698