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

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

Issue 177653004: DevTools: Get rid of redundant default selection during inspectElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase on master Created 6 years, 9 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 <style> 3 <style>
4 #inspected:before { 4 #inspected:before {
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 11 matching lines...) Expand all
22 <script src="../../../http/tests/inspector/elements-test.js"></script> 22 <script src="../../../http/tests/inspector/elements-test.js"></script>
23 <script> 23 <script>
24 24
25 var initialize_PseudoElementsTest = function() { 25 var initialize_PseudoElementsTest = function() {
26 26
27 InspectorTest.selectIdNodeWithId = function(idValue, pseudoType, callback) 27 InspectorTest.selectIdNodeWithId = function(idValue, pseudoType, callback)
28 { 28 {
29 callback = InspectorTest.safeWrap(callback); 29 callback = InspectorTest.safeWrap(callback);
30 function onNodeFound(node) 30 function onNodeFound(node)
31 { 31 {
32 if (node) 32 WebInspector.Revealer.reveal(node);
33 WebInspector._updateFocusedNode(node.id);
34 callback(node); 33 callback(node);
35 } 34 }
36 35
37 InspectorTest.findNode(nodeIdMatches, onNodeFound); 36 InspectorTest.findNode(nodeIdMatches, onNodeFound);
38 function nodeIdMatches(node) 37 function nodeIdMatches(node)
39 { 38 {
40 return node.parentNode && node.pseudoType() === pseudoType && node.paren tNode.getAttribute("id") === idValue; 39 return node.parentNode && node.pseudoType() === pseudoType && node.paren tNode.getAttribute("id") === idValue;
41 } 40 }
42 } 41 }
43 42
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 Tests that pseudo elements and their styles are handled properly. 228 Tests that pseudo elements and their styles are handled properly.
230 </p> 229 </p>
231 230
232 <div id="container"> 231 <div id="container">
233 <div id="inspected">Text</div> 232 <div id="inspected">Text</div>
234 <div id="empty"></div> 233 <div id="empty"></div>
235 </div> 234 </div>
236 235
237 </body> 236 </body>
238 </html> 237 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698