| Index: third_party/WebKit/LayoutTests/http/tests/inspector-protocol/css-protocol-test.js
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/css-protocol-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/css-protocol-test.js
|
| index 989710e80e084156d39f2d6ceaa241f3bea4dc53..ab69ab9ca56cb617b5e239fdf95c25dc6d34607a 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/css-protocol-test.js
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/css-protocol-test.js
|
| @@ -145,6 +145,26 @@ InspectorTest.loadAndDumpMatchingRulesForNode = function(nodeId, callback, omitL
|
| }
|
| }
|
|
|
| +InspectorTest.loadAndDumpCSSAnimationsForNode = function(nodeId, callback)
|
| +{
|
| + InspectorTest.sendCommandOrDie("CSS.getCSSAnimationsForNode", { "nodeId": nodeId }, cssAnimationsLoaded);
|
| +
|
| + function cssAnimationsLoaded(result)
|
| + {
|
| + InspectorTest.log("Dumping CSS keyframed animations: ");
|
| + for (var keyframesRule of result.cssKeyframesRules) {
|
| + InspectorTest.log("@keyframes " + keyframesRule.animationName + " {");
|
| + for (var keyframe of keyframesRule.keyframes) {
|
| + indentLog(4, keyframe.keyText + " {");
|
| + InspectorTest.dumpStyle(keyframe.style, 4);
|
| + indentLog(4, "}");
|
| + }
|
| + InspectorTest.log("}");
|
| + }
|
| + callback();
|
| + }
|
| +}
|
| +
|
| InspectorTest.loadAndDumpMatchingRules = function(documentNodeId, selector, callback, omitLog)
|
| {
|
| InspectorTest.requestNodeId(documentNodeId, selector, nodeIdLoaded);
|
|
|