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

Unified Diff: LayoutTests/inspector/elements/styles-4/styles-new-API.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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/inspector/elements/styles-4/styles-new-API.html
diff --git a/LayoutTests/inspector/elements/styles-4/styles-new-API.html b/LayoutTests/inspector/elements/styles-4/styles-new-API.html
index 89f91a65db2d8d5f42a7f297ced895aebb082d94..5266a2758c02354bed213cb6db5085e8f29c6be4 100644
--- a/LayoutTests/inspector/elements/styles-4/styles-new-API.html
+++ b/LayoutTests/inspector/elements/styles-4/styles-new-API.html
@@ -58,17 +58,7 @@ function test()
resultStyles.computedStyle = computedStyle;
}
- function inlineCallback(error, inlineStyle)
- {
- if (error) {
- InspectorTest.addResult("error: " + error);
- InspectorTest.completeTest();
- return;
- }
- resultStyles.inlineStyle = inlineStyle;
- }
-
- function matchedCallback(error, matchedCSSRules, pseudoElements, inherited)
+ function matchedCallback(error, inlineStyle, attributeStyle, matchedCSSRules, pseudoElements, inherited)
{
if (error) {
InspectorTest.addResult("error: " + error);
@@ -76,6 +66,7 @@ function test()
return;
}
+ resultStyles.inlineStyle = inlineStyle;
resultStyles.matchedCSSRules = matchedCSSRules;
resultStyles.pseudoElements = pseudoElements;
resultStyles.inherited = inherited;
@@ -86,7 +77,6 @@ function test()
bodyId = node.id;
var promises = [
InspectorTest.CSSAgent.getComputedStyleForNode(node.id, computedCallback),
- InspectorTest.CSSAgent.getInlineStylesForNode(node.id, inlineCallback),
InspectorTest.CSSAgent.getMatchedStylesForNode(node.id, matchedCallback)
];
Promise.all(promises).then(callback.bind(null, resultStyles));
@@ -99,7 +89,7 @@ function test()
InspectorTest.CSSAgent.forcePseudoState(bodyId, ["hover"]);
InspectorTest.CSSAgent.getMatchedStylesForNode(bodyId, matchedCallback);
- function matchedCallback(error, matchedRules)
+ function matchedCallback(error, inlineStyle, attributeStyle, matchedRules)
{
InspectorTest.addResult("=== BODY with forced :hover ===");
InspectorTest.dumpRuleMatchesArray(matchedRules);
@@ -174,7 +164,7 @@ function test()
function test_addRule(next)
{
- function didGetStyles(error, matchedCSSRules)
+ function didGetStyles(error, inlineStyle, attributeStyle, matchedCSSRules)
{
if (error) {
InspectorTest.addResult("error: " + error);

Powered by Google App Engine
This is Rietveld 408576698