OLD | NEW |
---|---|
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 <style> | 5 <style> |
6 #pseudo::after { | 6 #pseudo::after { |
7 pseudo-property: "12"; | 7 pseudo-property: "12"; |
8 color: red; | 8 color: red; |
9 } | 9 } |
10 | 10 |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
114 } | 114 } |
115 callback(); | 115 callback(); |
116 } | 116 } |
117 } | 117 } |
118 | 118 |
119 function getMatchedRules() | 119 function getMatchedRules() |
120 { | 120 { |
121 var rules = []; | 121 var rules = []; |
122 for (var block of WebInspector.panels.elements.sidebarPanes.styles._sect ionBlocks) { | 122 for (var block of WebInspector.panels.elements.sidebarPanes.styles._sect ionBlocks) { |
123 for (var section of block.sections) { | 123 for (var section of block.sections) { |
124 var rule = section.rule(); | 124 var rule = section._style.parentRule; |
dgozman
2015/11/07 03:00:53
style()
lushnikov
2015/11/07 03:09:25
Done.
| |
125 if (rule) | 125 if (rule) |
126 rules.push(rule); | 126 rules.push(rule); |
127 } | 127 } |
128 } | 128 } |
129 return rules; | 129 return rules; |
130 } | 130 } |
131 | 131 |
132 InspectorTest.runTestSuite([ | 132 InspectorTest.runTestSuite([ |
133 function selectInitialNode(next) | 133 function selectInitialNode(next) |
134 { | 134 { |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
219 <div id="container" class="left-intact should-change"> | 219 <div id="container" class="left-intact should-change"> |
220 Red text here. | 220 Red text here. |
221 </div> | 221 </div> |
222 | 222 |
223 <div id="other"></div> | 223 <div id="other"></div> |
224 | 224 |
225 <section id="pseudo"></div> | 225 <section id="pseudo"></div> |
226 | 226 |
227 </body> | 227 </body> |
228 </html> | 228 </html> |
OLD | NEW |