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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector-protocol/css-protocol-test.js

Issue 1371723002: Devtools Animations: Add method to fetch CSS keyframed animations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector-protocol/css/css-get-keyframes.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector-protocol/css/css-get-keyframes.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698