@@ -1918,41 +1918,6 @@ describe("ngAnimate", function() {
1918
1918
} ) ) ;
1919
1919
1920
1920
1921
- it ( "should not set the transition property flag if only CSS animations are used" ,
1922
- inject ( function ( $compile , $rootScope , $animate , $sniffer , $timeout ) {
1923
-
1924
- if ( ! $sniffer . animations ) return ;
1925
-
1926
- ss . addRule ( '.sleek-animation.ng-enter' , '-webkit-animation: my_animation 2s linear;' +
1927
- 'animation: my_animation 2s linear' ) ;
1928
-
1929
- ss . addRule ( '.trans.ng-enter' , '-webkit-transition:1s linear all;' +
1930
- 'transition:1s linear all' ) ;
1931
-
1932
- var propertyKey = ( $sniffer . vendorPrefix == 'Webkit' ? '-webkit-' : '' ) + 'transition-property' ;
1933
-
1934
- var element = html ( $compile ( '<div>...</div>' ) ( $rootScope ) ) ;
1935
- var child = $compile ( '<div class="skeep-animation">...</div>' ) ( $rootScope ) ;
1936
- child . css ( propertyKey , 'background-color' ) ;
1937
-
1938
- $animate . enter ( child , element ) ;
1939
- $rootScope . $digest ( ) ;
1940
- $timeout . flush ( ) ;
1941
-
1942
- browserTrigger ( child , 'transitionend' , { timeStamp : Date . now ( ) + 2000 , elapsedTime : 2 } ) ;
1943
-
1944
- expect ( child . css ( propertyKey ) ) . toBe ( 'background-color' ) ;
1945
- child . remove ( ) ;
1946
-
1947
- child = $compile ( '<div class="sleek-animation">...</div>' ) ( $rootScope ) ;
1948
- child . attr ( 'class' , 'trans' ) ;
1949
- $animate . enter ( child , element ) ;
1950
- $rootScope . $digest ( ) ;
1951
-
1952
- expect ( child . css ( propertyKey ) ) . not . toBe ( 'background-color' ) ;
1953
- } ) ) ;
1954
-
1955
-
1956
1921
it ( "should skip animations if the browser does not support CSS3 transitions and CSS3 animations" ,
1957
1922
inject ( function ( $compile , $rootScope , $animate , $sniffer ) {
1958
1923
0 commit comments