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

Side by Side Diff: LayoutTests/inspector/elements/styles/pseudo-elements.html

Issue 720793003: DevTools: Replace visibleChildrenCount with hasVisibleChildren in ElementsTreeOutline. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix Created 6 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <style> 3 <style>
4 #inspected:before, .some-other-selector { 4 #inspected:before, .some-other-selector {
5 content: "BEFORE"; 5 content: "BEFORE";
6 } 6 }
7 7
8 #inspected:after { 8 #inspected:after {
9 content: "AFTER"; 9 content: "AFTER";
10 } 10 }
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 executeAndDumpTree("modifyTextContent()", WebInspector.DOMModel.Even ts.NodeInserted, next); 165 executeAndDumpTree("modifyTextContent()", WebInspector.DOMModel.Even ts.NodeInserted, next);
166 }, 166 },
167 167
168 function clearTextContent(next) 168 function clearTextContent(next)
169 { 169 {
170 executeAndDumpTree("clearTextContent()", WebInspector.DOMModel.Event s.NodeRemoved, next); 170 executeAndDumpTree("clearTextContent()", WebInspector.DOMModel.Event s.NodeRemoved, next);
171 }, 171 },
172 172
173 function removeNodeAndCheckPseudoElementsUnbound(next) 173 function removeNodeAndCheckPseudoElementsUnbound(next)
174 { 174 {
175 var inspectedBefore = inspectedNode.pseudoElements()["before"]; 175 var inspectedBefore = inspectedNode.beforePseudoElement();
176 var inspectedAfter = inspectedNode.pseudoElements()["after"]; 176 var inspectedAfter = inspectedNode.afterPseudoElement();
177 177
178 executeAndDumpTree("removeNode()", WebInspector.DOMModel.Events.Node Removed, callback); 178 executeAndDumpTree("removeNode()", WebInspector.DOMModel.Events.Node Removed, callback);
179 function callback() 179 function callback()
180 { 180 {
181 InspectorTest.addResult("inspected:before DOMNode in DOMAgent: " + !!(WebInspector.domModel.nodeForId(inspectedBefore.id))); 181 InspectorTest.addResult("inspected:before DOMNode in DOMAgent: " + !!(WebInspector.domModel.nodeForId(inspectedBefore.id)));
182 InspectorTest.addResult("inspected:after DOMNode in DOMAgent: " + !!(WebInspector.domModel.nodeForId(inspectedAfter.id))); 182 InspectorTest.addResult("inspected:after DOMNode in DOMAgent: " + !!(WebInspector.domModel.nodeForId(inspectedAfter.id)));
183 next(); 183 next();
184 } 184 }
185 } 185 }
186 ]); 186 ]);
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 Tests that pseudo elements and their styles are handled properly. 238 Tests that pseudo elements and their styles are handled properly.
239 </p> 239 </p>
240 240
241 <div id="container"> 241 <div id="container">
242 <div id="inspected">Text</div> 242 <div id="inspected">Text</div>
243 <div id="empty"></div> 243 <div id="empty"></div>
244 </div> 244 </div>
245 245
246 </body> 246 </body>
247 </html> 247 </html>
OLDNEW
« no previous file with comments | « LayoutTests/inspector/elements/hide-shortcut.html ('k') | Source/devtools/front_end/elements/ElementsTreeOutline.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698