@@ -135,6 +135,37 @@ define(function (require, exports, module) {
135135 } ) ;
136136
137137 // Valid other functions
138+ it ( "should match linear animation function in declaration in strict mode" , function ( ) {
139+ match = TimingFunctionUtils . timingFunctionMatch ( "animation-timing-function: linear;" , false ) ;
140+ expect ( match . length ) . toEqual ( 1 ) ;
141+ expect ( match [ 0 ] ) . toEqual ( "linear" ) ;
142+ expect ( match . originalString ) . toBeFalsy ( ) ;
143+ } ) ;
144+ it ( "should match ease animation function in declaration in strict mode" , function ( ) {
145+ match = TimingFunctionUtils . timingFunctionMatch ( "animation-timing-function: ease;" , false ) ;
146+ expect ( match . length ) . toEqual ( 1 ) ;
147+ expect ( match [ 0 ] ) . toEqual ( "ease" ) ;
148+ expect ( match . originalString ) . toBeFalsy ( ) ;
149+ } ) ;
150+ it ( "should match ease-in animation function in declaration in strict mode" , function ( ) {
151+ match = TimingFunctionUtils . timingFunctionMatch ( "animation-timing-function: ease-in;" , false ) ;
152+ expect ( match . length ) . toEqual ( 1 ) ;
153+ expect ( match [ 0 ] ) . toEqual ( "ease-in" ) ;
154+ expect ( match . originalString ) . toBeFalsy ( ) ;
155+ } ) ;
156+ it ( "should match ease-out animation function in declaration in strict mode" , function ( ) {
157+ match = TimingFunctionUtils . timingFunctionMatch ( "animation-timing-function: ease-out;" , false ) ;
158+ expect ( match . length ) . toEqual ( 1 ) ;
159+ expect ( match [ 0 ] ) . toEqual ( "ease-out" ) ;
160+ expect ( match . originalString ) . toBeFalsy ( ) ;
161+ } ) ;
162+ it ( "should match ease-in-out animation function in declaration in strict mode" , function ( ) {
163+ match = TimingFunctionUtils . timingFunctionMatch ( "animation-timing-function: ease-in-out;" , false ) ;
164+ expect ( match . length ) . toEqual ( 1 ) ;
165+ expect ( match [ 0 ] ) . toEqual ( "ease-in-out" ) ;
166+ expect ( match . originalString ) . toBeFalsy ( ) ;
167+ } ) ;
168+
138169 it ( "should match linear function in declaration in strict mode" , function ( ) {
139170 match = TimingFunctionUtils . timingFunctionMatch ( "transition-timing-function: linear;" , false ) ;
140171 expect ( match . length ) . toEqual ( 1 ) ;
0 commit comments