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

Unified Diff: LayoutTests/animations/keyframes-rule.html

Issue 1153493002: Remove CSSKeyframesRule.insertRule() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: tests Created 5 years, 7 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/animations/keyframes-rule.html
diff --git a/LayoutTests/animations/keyframes-rule.html b/LayoutTests/animations/keyframes-rule.html
index 2da0dd0200809e365e508174bf0d5b77033da0a2..a16cd24ca18c4939df791edd1eed7ada267d1077 100644
--- a/LayoutTests/animations/keyframes-rule.html
+++ b/LayoutTests/animations/keyframes-rule.html
@@ -116,9 +116,9 @@ shouldBe("rules1.item(1).cssText", "'100% { left: 20px; }'");
debug("");
debug("Insert new rules");
-keyframes1.insertRule("30% { left: 30px; }");
-keyframes1.insertRule("60% { left: 60px; }");
-keyframes1.insertRule("20% { left: 50px; }");
+keyframes1.appendRule("30% { left: 30px; }");
+keyframes1.appendRule("60% { left: 60px; }");
+keyframes1.appendRule("20% { left: 50px; }");
shouldBe("rules1.length", "5");
shouldBe("rules1.item(0).cssText", "'0% { left: 10px; }'");
@@ -131,10 +131,10 @@ debug("");
debug("Insert invalid rules");
var keyframes2 = document.styleSheets.item(0).cssRules.item(1);
-keyframes2.insertRule("foo");
-keyframes2.insertRule("foo { left: 30px; }");
-keyframes2.insertRule("-10% { left: 30px; }");
-keyframes2.insertRule("10% { left: 30px; }");
+keyframes2.appendRule("foo");
+keyframes2.appendRule("foo { left: 30px; }");
+keyframes2.appendRule("-10% { left: 30px; }");
+keyframes2.appendRule("10% { left: 30px; }");
var rules2 = keyframes2.cssRules;
shouldBe("rules2.length", "6");
« no previous file with comments | « LayoutTests/animations/keyframes-missing-arguments-expected.txt ('k') | LayoutTests/animations/keyframes-rule-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698