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

Unified Diff: third_party/WebKit/LayoutTests/inspector/elements/styles-4/keyframes-source-offsets.html

Issue 1577723002: Devtools: Add editable keyframes to the styles sidebar pane (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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: third_party/WebKit/LayoutTests/inspector/elements/styles-4/keyframes-source-offsets.html
diff --git a/third_party/WebKit/LayoutTests/inspector/elements/styles-4/keyframes-source-offsets.html b/third_party/WebKit/LayoutTests/inspector/elements/styles-4/keyframes-source-offsets.html
index cb9dfaf09bb12ba34bc93b8c02018cf088347963..1c616aab8138e6aca187f464b220c6b4fc47389b 100644
--- a/third_party/WebKit/LayoutTests/inspector/elements/styles-4/keyframes-source-offsets.html
+++ b/third_party/WebKit/LayoutTests/inspector/elements/styles-4/keyframes-source-offsets.html
@@ -40,25 +40,25 @@ function test()
function step1(node)
{
- InspectorTest.CSSAgent.getCSSAnimationsForNode(node.id, onCSSAnimations.bind(null, node.id));
+ InspectorTest.CSSAgent.getMatchedStylesForNode(node.id, onCSSAnimations.bind(null, node.id));
}
- function onCSSAnimations(nodeId, error, rules)
+ function onCSSAnimations(nodeId, error, inlinePayload, attributesPayload, matchedPayload, pseudoPayload, inheritedPayload, animationsPayload)
{
- for (var i = 0; i < rules.length; ++i)
- dumpRule(rules[i]);
+ for (var i = 0; i < animationsPayload.length; ++i)
+ dumpRule(animationsPayload[i]);
InspectorTest.addResult("\n>> Modifying keyframe rule");
- var style = new WebInspector.CSSStyleDeclaration(InspectorTest.cssModel, null, rules[1].keyframes[0].style, WebInspector.CSSStyleDeclaration.Type.Regular);
+ var style = new WebInspector.CSSStyleDeclaration(InspectorTest.cssModel, null, animationsPayload[1].keyframes[0].style, WebInspector.CSSStyleDeclaration.Type.Regular);
style.setText("width: 123px");
- InspectorTest.CSSAgent.getCSSAnimationsForNode(nodeId, onModifiedAnimations);
+ InspectorTest.CSSAgent.getMatchedStylesForNode(nodeId, onModifiedAnimations);
}
- function onModifiedAnimations(error, rules)
+ function onModifiedAnimations(error, inlinePayload, attributesPayload, matchedPayload, pseudoPayload, inheritedPayload, animationsPayload)
{
- for (var i = 0; i < rules.length; ++i)
- dumpRule(rules[i]);
+ for (var i = 0; i < animationsPayload.length; ++i)
+ dumpRule(animationsPayload[i]);
InspectorTest.completeTest();
}
}

Powered by Google App Engine
This is Rietveld 408576698