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

Side by Side Diff: LayoutTests/animations/keyframes-rule.html

Issue 16063006: Fix check in animations/keyframes-rule.html (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/animations/keyframes-rule-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <style type="text/css" media="screen"> 3 <style type="text/css" media="screen">
4 @-webkit-keyframes test1 { 4 @-webkit-keyframes test1 {
5 from { left: 10px; } 5 from { left: 10px; }
6 to { left: 20px; } 6 to { left: 20px; }
7 } 7 }
8 @-webkit-keyframes test2 { 8 @-webkit-keyframes test2 {
9 0% { left: 10px; } 9 0% { left: 10px; }
10 50% { left: 30px; } 10 50% { left: 30px; }
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 shouldBe("rules2.item(0).keyText", "'0%'"); 89 shouldBe("rules2.item(0).keyText", "'0%'");
90 shouldBe("rules2.item(1).keyText", "'50%'"); 90 shouldBe("rules2.item(1).keyText", "'50%'");
91 shouldBe("rules2.item(2).keyText", "'100%'"); 91 shouldBe("rules2.item(2).keyText", "'100%'");
92 92
93 shouldBe("rules2.item(0).cssText", "'0% { left: 10px; }'"); 93 shouldBe("rules2.item(0).cssText", "'0% { left: 10px; }'");
94 shouldBe("rules2.item(1).cssText", "'50% { left: 30px; }'"); 94 shouldBe("rules2.item(1).cssText", "'50% { left: 30px; }'");
95 shouldBe("rules2.item(2).cssText", "'100% { left: 20px; }'"); 95 shouldBe("rules2.item(2).cssText", "'100% { left: 20px; }'");
96 96
97 debug(""); 97 debug("");
98 98
99 shouldBe("typeof(rules2.item(0).style)", "typeof(CSSStyleDeclaration)"); 99 shouldBeType("rules2.item(0).style", "CSSStyleDeclaration");
100 shouldBe("rules2.item(0).style.length", "1"); 100 shouldBe("rules2.item(0).style.length", "1");
101 101
102 debug(""); 102 debug("");
103 debug("Find a rule"); 103 debug("Find a rule");
104 104
105 var rule = keyframes2.findRule("50%"); 105 var rule = keyframes2.findRule("50%");
106 106
107 if (!rule) 107 if (!rule)
108 testFailed("Could not extract '50%' keyframe rule"); 108 testFailed("Could not extract '50%' keyframe rule");
109 109
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 shouldBe("rules2.item(0).type", "window.CSSRule.WEBKIT_KEYFRAME_RULE"); 160 shouldBe("rules2.item(0).type", "window.CSSRule.WEBKIT_KEYFRAME_RULE");
161 shouldBe("rules2.item(0).keyText", "'0%'"); 161 shouldBe("rules2.item(0).keyText", "'0%'");
162 shouldBe("rules2.item(1).keyText", "'100%'"); 162 shouldBe("rules2.item(1).keyText", "'100%'");
163 163
164 debug(""); 164 debug("");
165 165
166 </script> 166 </script>
167 <script src="../fast/js/resources/js-test-post.js"></script> 167 <script src="../fast/js/resources/js-test-post.js"></script>
168 </body> 168 </body>
169 </html> 169 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/animations/keyframes-rule-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698