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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/elements/styles-4/styles-update-links.html

Issue 1434613002: DevTools: kill WebInspector.StylesSectionModel class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 5 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
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 <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
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;
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698