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

Unified Diff: LayoutTests/animations/animations-parsing-expected.txt

Issue 23011009: Implement computed style for animation shorthand and align parsing with the spec. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Test modified according to Tab's comments Created 7 years, 4 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 | « LayoutTests/animations/animations-parsing.html ('k') | Source/core/css/CSSComputedStyleDeclaration.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/animations/animations-parsing-expected.txt
diff --git a/LayoutTests/animations/animations-parsing-expected.txt b/LayoutTests/animations/animations-parsing-expected.txt
index 97f365a01e702941eaf99a9c8403008b7848078c..1713355d67ae2b98c9fedba4257a7d74905a9900 100644
--- a/LayoutTests/animations/animations-parsing-expected.txt
+++ b/LayoutTests/animations/animations-parsing-expected.txt
@@ -519,6 +519,176 @@ PASS style.animationFillMode is ''
PASS computedStyle.animationFillMode is 'none'
PASS style.webkitAnimationFillMode is ''
PASS computedStyle.webkitAnimationFillMode is 'none'
+Valid animation shorthand values.
+PASS computedStyle.animation is 'none 0s ease 0s 1 normal none running'
+PASS computedStyle.webkitAnimation is 'none 0s ease 0s 1 normal none running'
+PASS Object.keys(style).indexOf('animation') is not -1
+PASS Object.keys(style).indexOf('webkitAnimation') is not -1
+PASS style.animation is 'myShorthandAnim'
+PASS computedStyle.animation is 'myShorthandAnim 0s ease 0s 1 normal none running'
+PASS style.webkitAnimation is 'myShorthandAnim'
+PASS computedStyle.webkitAnimation is 'myShorthandAnim 0s ease 0s 1 normal none running'
+PASS checkAnimationShorthandValue() is true
+PASS Object.keys(style).indexOf('animation') is not -1
+PASS Object.keys(style).indexOf('webkitAnimation') is not -1
+PASS style.animation is 'none'
+PASS computedStyle.animation is 'none 0s ease 0s 1 normal none running'
+PASS style.webkitAnimation is 'none'
+PASS computedStyle.webkitAnimation is 'none 0s ease 0s 1 normal none running'
+PASS checkAnimationShorthandValue() is true
+PASS style.animation is '20s none'
+PASS computedStyle.animation is 'none 20s ease 0s 1 normal none running'
+PASS style.webkitAnimation is '20s none'
+PASS computedStyle.webkitAnimation is 'none 20s ease 0s 1 normal none running'
+PASS checkAnimationShorthandValue() is true
+PASS style.animation is 'myShorthandAnim 20s none'
+PASS computedStyle.animation is 'myShorthandAnim 20s ease 0s 1 normal none running'
+PASS style.webkitAnimation is 'myShorthandAnim 20s none'
+PASS computedStyle.webkitAnimation is 'myShorthandAnim 20s ease 0s 1 normal none running'
+PASS checkAnimationShorthandValue() is true
+PASS style.animation is 'myShorthandAnim 20s ease-in none'
+PASS computedStyle.animation is 'myShorthandAnim 20s ease-in 0s 1 normal none running'
+PASS style.webkitAnimation is 'myShorthandAnim 20s ease-in none'
+PASS computedStyle.webkitAnimation is 'myShorthandAnim 20s ease-in 0s 1 normal none running'
+PASS checkAnimationShorthandValue() is true
+PASS style.animation is 'myShorthandAnim 20s ease-in'
+PASS computedStyle.animation is 'myShorthandAnim 20s ease-in 0s 1 normal none running'
+PASS style.webkitAnimation is 'myShorthandAnim 20s ease-in'
+PASS computedStyle.webkitAnimation is 'myShorthandAnim 20s ease-in 0s 1 normal none running'
+PASS checkAnimationShorthandValue() is true
+PASS style.animation is 'myShorthandAnim 20s ease-in 10s'
+PASS computedStyle.animation is 'myShorthandAnim 20s ease-in 10s 1 normal none running'
+PASS style.webkitAnimation is 'myShorthandAnim 20s ease-in 10s'
+PASS computedStyle.webkitAnimation is 'myShorthandAnim 20s ease-in 10s 1 normal none running'
+PASS computedStyle.animationDuration is '20s'
+PASS computedStyle.webkitAnimationDuration is '20s'
+PASS computedStyle.animationDelay is '10s'
+PASS computedStyle.webkitAnimationDelay is '10s'
+PASS checkAnimationShorthandValue() is true
+PASS style.animation is 'myShorthandAnim 20s ease-in 10s'
+PASS computedStyle.animation is 'myShorthandAnim 20s ease-in 10s 1 normal none running'
+PASS style.webkitAnimation is 'myShorthandAnim 20s ease-in 10s'
+PASS computedStyle.webkitAnimation is 'myShorthandAnim 20s ease-in 10s 1 normal none running'
+PASS computedStyle.animationDuration is '20s'
+PASS computedStyle.webkitAnimationDuration is '20s'
+PASS computedStyle.animationDelay is '10s'
+PASS computedStyle.webkitAnimationDelay is '10s'
+PASS checkAnimationShorthandValue() is true
+PASS style.animation is 'myShorthandAnim 20s ease-in 10s paused'
+PASS computedStyle.animation is 'myShorthandAnim 20s ease-in 10s 1 normal none paused'
+PASS style.webkitAnimation is 'myShorthandAnim 20s ease-in 10s paused'
+PASS computedStyle.webkitAnimation is 'myShorthandAnim 20s ease-in 10s 1 normal none paused'
+PASS computedStyle.animationDuration is '20s'
+PASS computedStyle.webkitAnimationDuration is '20s'
+PASS computedStyle.animationDelay is '10s'
+PASS computedStyle.webkitAnimationDelay is '10s'
+PASS checkAnimationShorthandValue() is true
+PASS style.animation is 'myShorthandAnim 20s ease-in 5 both'
+PASS computedStyle.animation is 'myShorthandAnim 20s ease-in 0s 5 normal both running'
+PASS style.webkitAnimation is 'myShorthandAnim 20s ease-in 5 both'
+PASS computedStyle.webkitAnimation is 'myShorthandAnim 20s ease-in 0s 5 normal both running'
+PASS checkAnimationShorthandValue() is true
+PASS style.animation is 'myShorthandAnim 20s ease-in 5 backwards'
+PASS computedStyle.animation is 'myShorthandAnim 20s ease-in 0s 5 normal backwards running'
+PASS style.webkitAnimation is 'myShorthandAnim 20s ease-in 5 backwards'
+PASS computedStyle.webkitAnimation is 'myShorthandAnim 20s ease-in 0s 5 normal backwards running'
+PASS checkAnimationShorthandValue() is true
+PASS style.animation is 'myShorthandAnim 20s 5 forwards'
+PASS computedStyle.animation is 'myShorthandAnim 20s ease 0s 5 normal forwards running'
+PASS style.webkitAnimation is 'myShorthandAnim 20s 5 forwards'
+PASS computedStyle.webkitAnimation is 'myShorthandAnim 20s ease 0s 5 normal forwards running'
+PASS checkAnimationShorthandValue() is true
+PASS style.animation is 'myShorthandAnim 20s ease-in 5'
+PASS computedStyle.animation is 'myShorthandAnim 20s ease-in 0s 5 normal none running'
+PASS style.webkitAnimation is 'myShorthandAnim 20s ease-in 5'
+PASS computedStyle.webkitAnimation is 'myShorthandAnim 20s ease-in 0s 5 normal none running'
+PASS checkAnimationShorthandValue() is true
+PASS style.animation is 'myShorthandAnim 20s ease-in 5 reverse'
+PASS computedStyle.animation is 'myShorthandAnim 20s ease-in 0s 5 reverse none running'
+PASS style.webkitAnimation is 'myShorthandAnim 20s ease-in 5 reverse'
+PASS computedStyle.webkitAnimation is 'myShorthandAnim 20s ease-in 0s 5 reverse none running'
+PASS checkAnimationShorthandValue() is true
+PASS style.animation is 'myShorthandAnim 20s ease-in 5 reverse backwards paused'
+PASS computedStyle.animation is 'myShorthandAnim 20s ease-in 0s 5 reverse backwards paused'
+PASS style.webkitAnimation is 'myShorthandAnim 20s ease-in 5 reverse backwards paused'
+PASS computedStyle.webkitAnimation is 'myShorthandAnim 20s ease-in 0s 5 reverse backwards paused'
+PASS checkAnimationShorthandValue() is true
+PASS style.animation is 'myShorthandAnim 20s ease-in 10s, width 10s cubic-bezier(0.32, 0, 1, 1) 20s'
+PASS computedStyle.animation is 'myShorthandAnim 20s ease-in 10s 1 normal none running, width 10s cubic-bezier(0.32, 0, 1, 1) 20s 1 normal none running'
+PASS style.webkitAnimation is 'myShorthandAnim 20s ease-in 10s, width 10s cubic-bezier(0.32, 0, 1, 1) 20s'
+PASS computedStyle.webkitAnimation is 'myShorthandAnim 20s ease-in 10s 1 normal none running, width 10s cubic-bezier(0.32, 0, 1, 1) 20s 1 normal none running'
+PASS computedStyle.animationDuration is '20s, 10s'
+PASS computedStyle.webkitAnimationDuration is '20s, 10s'
+PASS computedStyle.animationDelay is '10s, 20s'
+PASS computedStyle.webkitAnimationDelay is '10s, 20s'
+PASS checkAnimationShorthandValue() is true
+PASS style.animation is 'myShorthandAnim 20s ease-in 10s paused, width 10s cubic-bezier(0.32, 0, 1, 1) 20s'
+PASS computedStyle.animation is 'myShorthandAnim 20s ease-in 10s 1 normal none paused, width 10s cubic-bezier(0.32, 0, 1, 1) 20s 1 normal none running'
+PASS style.webkitAnimation is 'myShorthandAnim 20s ease-in 10s paused, width 10s cubic-bezier(0.32, 0, 1, 1) 20s'
+PASS computedStyle.webkitAnimation is 'myShorthandAnim 20s ease-in 10s 1 normal none paused, width 10s cubic-bezier(0.32, 0, 1, 1) 20s 1 normal none running'
+PASS computedStyle.animationDuration is '20s, 10s'
+PASS computedStyle.webkitAnimationDuration is '20s, 10s'
+PASS computedStyle.animationDelay is '10s, 20s'
+PASS computedStyle.webkitAnimationDelay is '10s, 20s'
+PASS checkAnimationShorthandValue() is true
+PASS style.animation is 'myShorthandAnim 20s ease-in 10s reverse paused, test 10s cubic-bezier(0.32, 0, 1, 1) 20s both'
+PASS computedStyle.animation is 'myShorthandAnim 20s ease-in 10s 1 reverse none paused, test 10s cubic-bezier(0.32, 0, 1, 1) 20s 1 normal both running'
+PASS style.webkitAnimation is 'myShorthandAnim 20s ease-in 10s reverse paused, test 10s cubic-bezier(0.32, 0, 1, 1) 20s both'
+PASS computedStyle.webkitAnimation is 'myShorthandAnim 20s ease-in 10s 1 reverse none paused, test 10s cubic-bezier(0.32, 0, 1, 1) 20s 1 normal both running'
+PASS checkAnimationShorthandValue() is true
+PASS style.animation is 'none, none'
+PASS computedStyle.animation is 'none 0s ease 0s 1 normal none running, none 0s ease 0s 1 normal none running'
+PASS style.webkitAnimation is 'none, none'
+PASS computedStyle.webkitAnimation is 'none 0s ease 0s 1 normal none running, none 0s ease 0s 1 normal none running'
+PASS style.animation is 'test 20s ease-in 10s, none'
+PASS computedStyle.animation is 'test 20s ease-in 10s 1 normal none running, none 0s ease 0s 1 normal none running'
+PASS style.webkitAnimation is 'test 20s ease-in 10s, none'
+PASS computedStyle.webkitAnimation is 'test 20s ease-in 10s 1 normal none running, none 0s ease 0s 1 normal none running'
+PASS computedStyle.animationName is 'test, none'
+PASS style.animation is 'none, test 20s ease-in 10s'
+PASS computedStyle.animation is 'none 0s ease 0s 1 normal none running, test 20s ease-in 10s 1 normal none running'
+PASS style.webkitAnimation is 'none, test 20s ease-in 10s'
+PASS computedStyle.webkitAnimation is 'none 0s ease 0s 1 normal none running, test 20s ease-in 10s 1 normal none running'
+PASS computedStyle.animationName is 'none, test'
+PASS style.animation is 'myShorthandAnim 20s ease-in 10s both paused, myShorthandAnim 20s ease-out'
+PASS computedStyle.animation is 'myShorthandAnim 20s ease-in 10s 1 normal both paused, myShorthandAnim 20s ease-out 0s 1 normal none running'
+PASS style.webkitAnimation is 'myShorthandAnim 20s ease-in 10s both paused, myShorthandAnim 20s ease-out'
+PASS computedStyle.webkitAnimation is 'myShorthandAnim 20s ease-in 10s 1 normal both paused, myShorthandAnim 20s ease-out 0s 1 normal none running'
+PASS style.animation is 'myShorthandAnim 20s ease-in 10s 4 backwards, myShorthandAnim2 20s ease-out 50'
+PASS computedStyle.animation is 'myShorthandAnim 20s ease-in 10s 4 normal backwards running, myShorthandAnim2 20s ease-out 0s 50 normal none running'
+PASS style.webkitAnimation is 'myShorthandAnim 20s ease-in 10s 4 backwards, myShorthandAnim2 20s ease-out 50'
+PASS computedStyle.webkitAnimation is 'myShorthandAnim 20s ease-in 10s 4 normal backwards running, myShorthandAnim2 20s ease-out 0s 50 normal none running'
+PASS checkAnimationShorthandValue() is true
+PASS style.animation is 'myShorthandAnim2 20s ease-out reverse, myShorthandAnim 20s ease-in 10s paused'
+PASS computedStyle.animation is 'myShorthandAnim2 20s ease-out 0s 1 reverse none running, myShorthandAnim 20s ease-in 10s 1 normal none paused'
+PASS style.webkitAnimation is 'myShorthandAnim2 20s ease-out reverse, myShorthandAnim 20s ease-in 10s paused'
+PASS computedStyle.webkitAnimation is 'myShorthandAnim2 20s ease-out 0s 1 reverse none running, myShorthandAnim 20s ease-in 10s 1 normal none paused'
+PASS checkAnimationShorthandValue() is true
+Invalid animation shorthand values.
+PASS style.animation is ''
+PASS computedStyle.animation is 'none 0s ease 0s 1 normal none running'
+PASS style.webkitAnimation is ''
+PASS computedStyle.webkitAnimation is 'none 0s ease 0s 1 normal none running'
+PASS style.animation is ''
+PASS computedStyle.animation is 'none 0s ease 0s 1 normal none running'
+PASS style.webkitAnimation is ''
+PASS computedStyle.webkitAnimation is 'none 0s ease 0s 1 normal none running'
+PASS style.animation is ''
+PASS computedStyle.animation is 'none 0s ease 0s 1 normal none running'
+PASS style.webkitAnimation is ''
+PASS computedStyle.webkitAnimation is 'none 0s ease 0s 1 normal none running'
+PASS style.animation is ''
+PASS computedStyle.animation is 'none 0s ease 0s 1 normal none running'
+PASS style.webkitAnimation is ''
+PASS computedStyle.webkitAnimation is 'none 0s ease 0s 1 normal none running'
+PASS style.animation is ''
+PASS computedStyle.animation is 'none 0s ease 0s 1 normal none running'
+PASS style.webkitAnimation is ''
+PASS computedStyle.webkitAnimation is 'none 0s ease 0s 1 normal none running'
+PASS style.animation is ''
+PASS computedStyle.animation is 'none 0s ease 0s 1 normal none running'
+PASS style.webkitAnimation is ''
+PASS computedStyle.webkitAnimation is 'none 0s ease 0s 1 normal none running'
PASS successfullyParsed is true
TEST COMPLETE
« no previous file with comments | « LayoutTests/animations/animations-parsing.html ('k') | Source/core/css/CSSComputedStyleDeclaration.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698