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

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

Issue 2191183003: DevTools: extract model from DOMBreakpointsSidebarPane (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minor style nits 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> 6 <script>
7 7
8 function appendElement(parentId, childId) 8 function appendElement(parentId, childId)
9 { 9 {
10 var child = document.createElement("div"); 10 var child = document.createElement("div");
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 InspectorTest.addResult("Test that 'Attribute Modified' breakpoint i s hit when modifying attribute."); 146 InspectorTest.addResult("Test that 'Attribute Modified' breakpoint i s hit when modifying attribute.");
147 pane._setBreakpoint(rootElement, pane._breakpointTypes.AttributeModi fied, true); 147 pane._setBreakpoint(rootElement, pane._breakpointTypes.AttributeModi fied, true);
148 InspectorTest.addResult("Set 'Attribute Modified' DOM breakpoint on rootElement."); 148 InspectorTest.addResult("Set 'Attribute Modified' DOM breakpoint on rootElement.");
149 InspectorTest.evaluateInPageWithTimeout("modifyAttribute('rootElemen t', 'data-test', 'foo')"); 149 InspectorTest.evaluateInPageWithTimeout("modifyAttribute('rootElemen t', 'data-test', 'foo')");
150 InspectorTest.addResult("Modify rootElement data-test attribute."); 150 InspectorTest.addResult("Modify rootElement data-test attribute.");
151 InspectorTest.waitUntilPausedAndDumpStackAndResume(step2); 151 InspectorTest.waitUntilPausedAndDumpStackAndResume(step2);
152 152
153 function step2(callFrames) 153 function step2(callFrames)
154 { 154 {
155 pane._removeBreakpoint(rootElement, pane._breakpointTypes.Attrib uteModified); 155 pane._removeBreakpoint(rootElement, pane._breakpointTypes.Attrib uteModified);
156 next(); 156 InspectorTest.addResult("Ensure the breakpoint is actually remov ed.");
157 InspectorTest.evaluateInPagePromise("modifyAttribute('rootElemen t', 'data-test', 'foo')").then(step3);
158 InspectorTest.addResult("Modify rootElement data-test attribute. ");
159 }
160
161 function step3()
162 {
163 InspectorTest.waitUntilResumed(next);
157 } 164 }
158 }, 165 },
159 166
160 function testModifyAttrNode(next) 167 function testModifyAttrNode(next)
161 { 168 {
162 InspectorTest.addResult("Test that 'Attribute Modified' breakpoint i s hit when modifying Attr node."); 169 InspectorTest.addResult("Test that 'Attribute Modified' breakpoint i s hit when modifying Attr node.");
163 pane._setBreakpoint(rootElement, pane._breakpointTypes.AttributeModi fied, true); 170 pane._setBreakpoint(rootElement, pane._breakpointTypes.AttributeModi fied, true);
164 InspectorTest.addResult("Set 'Attribute Modified' DOM breakpoint on rootElement."); 171 InspectorTest.addResult("Set 'Attribute Modified' DOM breakpoint on rootElement.");
165 InspectorTest.evaluateInPageWithTimeout("modifyAttrNode('rootElement ', 'data-test', 'bar')"); 172 InspectorTest.evaluateInPageWithTimeout("modifyAttrNode('rootElement ', 'data-test', 'bar')");
166 InspectorTest.addResult("Modify rootElement data-test attribute."); 173 InspectorTest.addResult("Modify rootElement data-test attribute.");
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 </div> 313 </div>
307 314
308 <div id="hostElement"></div> 315 <div id="hostElement"></div>
309 <script> 316 <script>
310 var root = document.getElementById("hostElement").createShadowRoot(); 317 var root = document.getElementById("hostElement").createShadowRoot();
311 root.innerHTML = "<div id='outerElement' style='red'><input id='input'/></div>"; 318 root.innerHTML = "<div id='outerElement' style='red'><input id='input'/></div>";
312 </script> 319 </script>
313 320
314 </body> 321 </body>
315 </html> 322 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698