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

Unified Diff: third_party/WebKit/LayoutTests/animations/keyframes-cssom-prefixed-02.html

Issue 2970883003: Separate out animations tests with prefixing (Closed)
Patch Set: Rebaseline virtual/threaded version of test too Created 3 years, 5 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/animations/keyframes-cssom-prefixed-02.html
diff --git a/third_party/WebKit/LayoutTests/animations/keyframes-cssom-prefixed-02.html b/third_party/WebKit/LayoutTests/animations/keyframes-cssom-prefixed-02.html
deleted file mode 100644
index 311c149219a6bda7e09f735026d9d8e7f5346a61..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/animations/keyframes-cssom-prefixed-02.html
+++ /dev/null
@@ -1,60 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
- "http://www.w3.org/TR/html4/loose.dtd">
-
-<html lang="en">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <script src="../resources/js-test.js"></script>
- <style type="text/css" media="screen">
- #test {
- position: absolute;
- left: 0;
- top: 100px;
- height: 100px;
- width: 100px;
- background-color: blue;
- animation-duration: 1s;
- animation-timing-function: linear;
- animation-name: anim;
- animation-fill-mode: forwards;
- }
- </style>
-</head>
-<body>
-<script>
-description("Test the CSSOM of @-webkit-keyframes.")
-
-var testContainer = document.createElement("div");
-document.body.appendChild(testContainer);
-
-testContainer.innerHTML = '<div style="width:500px;height:500px"><div id="test">hello</div></div>';
-
-e = document.getElementById('test');
-var lastSheet = document.styleSheets[document.styleSheets.length - 1];
-lastSheet.insertRule("@-webkit-keyframes anim { from { left: 200px; } to { left: 300px;} }", lastSheet.cssRules.length);
-
-var keyframeRule = lastSheet.cssRules[lastSheet.cssRules.length - 1];
-shouldBeEqualToString("keyframeRule.toString()", "[object CSSKeyframesRule]");
-shouldBe("keyframeRule.type", "7");
-shouldBeEqualToString("keyframeRule.name", "anim");
-shouldBeEqualToString("keyframeRule.findRule('from').cssText", "0% { left: 200px; }");
-shouldBeEqualToString("keyframeRule.findRule('to').cssText", "100% { left: 300px; }");
-keyframeRule.deleteRule("from");
-shouldBeNull("keyframeRule.findRule('from')");
-keyframeRule.appendRule("from { left: 200px; }");
-shouldBeEqualToString("keyframeRule.findRule('from').cssText", "0% { left: 200px; }");
-shouldBeEqualToString("keyframeRule.cssRules[0].toString()", "[object CSSKeyframeRule]");
-shouldBeEqualToString("keyframeRule.cssRules[0].cssText", "100% { left: 300px; }");
-shouldBeEqualToString("keyframeRule.cssRules[0].keyText", "100%");
-shouldBeEqualToString("keyframeRule.cssRules[0].style.cssText", "left: 300px;");
-shouldBeEqualToString("keyframeRule.cssRules[1].toString()", "[object CSSKeyframeRule]");
-shouldBeEqualToString("keyframeRule.cssRules[1].cssText", "0% { left: 200px; }");
-shouldBeEqualToString("keyframeRule.cssRules[1].keyText", "0%");
-shouldBeEqualToString("keyframeRule.cssRules[1].style.cssText", "left: 200px;");
-
-shouldThrow("new CSSKeyframesRule().name", "'TypeError: Illegal constructor'");
-
-document.body.removeChild(testContainer);
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698