OLD | NEW |
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 Loading... |
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 Loading... |
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> |
OLD | NEW |