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

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

Issue 1350183004: DevTools: CSS.getMatchedStylesForNode protocol command to return inline styles (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix tests Created 5 years, 3 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 | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 3
4 <link rel="stylesheet" href="../styles/resources/styles-history.css"> 4 <link rel="stylesheet" href="../styles/resources/styles-history.css">
5 5
6 <script src="../../../http/tests/inspector/inspector-test.js"></script> 6 <script src="../../../http/tests/inspector/inspector-test.js"></script>
7 <script src="../../../http/tests/inspector/elements-test.js"></script> 7 <script src="../../../http/tests/inspector/elements-test.js"></script>
8 <script src="../../../http/tests/inspector/resources-test.js"></script> 8 <script src="../../../http/tests/inspector/resources-test.js"></script>
9 <script src="../styles/styles-test.js"></script> 9 <script src="../styles/styles-test.js"></script>
10 <script> 10 <script>
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 function styleSheetForResource(callback) 86 function styleSheetForResource(callback)
87 { 87 {
88 InspectorTest.nodeWithId("mainBody", onNodeSelected); 88 InspectorTest.nodeWithId("mainBody", onNodeSelected);
89 89
90 function onNodeSelected(node) 90 function onNodeSelected(node)
91 { 91 {
92 InspectorTest.CSSAgent.getMatchedStylesForNode(node.id, onMatchedSty lesForNode); 92 InspectorTest.CSSAgent.getMatchedStylesForNode(node.id, onMatchedSty lesForNode);
93 } 93 }
94 94
95 function onMatchedStylesForNode(error, matchedStyles) 95 function onMatchedStylesForNode(error, inlineStyle, attributeStyle, matc hedStyles)
96 { 96 {
97 if (error) { 97 if (error) {
98 InspectorTest.addResult("error: " + error); 98 InspectorTest.addResult("error: " + error);
99 InspectorTest.completeTest(); 99 InspectorTest.completeTest();
100 return; 100 return;
101 } 101 }
102 for (var i = 0; i < matchedStyles.length; ++i) { 102 for (var i = 0; i < matchedStyles.length; ++i) {
103 var rule = matchedStyles[i].rule; 103 var rule = matchedStyles[i].rule;
104 if (rule.origin !== "regular") 104 if (rule.origin !== "regular")
105 continue; 105 continue;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 139
140 </script> 140 </script>
141 </head> 141 </head>
142 142
143 <body id="mainBody" onload="runTest()"> 143 <body id="mainBody" onload="runTest()">
144 <p> 144 <p>
145 Tests resources panel history. 145 Tests resources panel history.
146 </p> 146 </p>
147 </body> 147 </body>
148 </html> 148 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698