@@ -554,7 +554,7 @@ describe('ngView', function() {
554
554
var child = jqLite ( element . children ( ) [ 0 ] ) ;
555
555
applyCSS ( child , 'transition' , '1s linear all' ) ;
556
556
557
- if ( $sniffer . supportsTransitions ) {
557
+ if ( $sniffer . transitions ) {
558
558
expect ( child . attr ( 'class' ) ) . toContain ( 'custom-enter-setup' ) ;
559
559
window . setTimeout . expect ( 1 ) . process ( ) ;
560
560
@@ -583,7 +583,7 @@ describe('ngView', function() {
583
583
$location . path ( '/' ) ;
584
584
$rootScope . $digest ( ) ;
585
585
586
- if ( $sniffer . supportsTransitions ) {
586
+ if ( $sniffer . transitions ) {
587
587
expect ( child . attr ( 'class' ) ) . toContain ( 'custom-leave-setup' ) ;
588
588
window . setTimeout . expect ( 1 ) . process ( ) ;
589
589
@@ -614,9 +614,9 @@ describe('ngView', function() {
614
614
var child = jqLite ( element . children ( ) [ 0 ] ) ;
615
615
applyCSS ( child , 'transition' , '0.5s linear all' ) ;
616
616
617
- if ( $sniffer . supportsTransitions ) {
617
+ if ( $sniffer . transitions ) {
618
618
window . setTimeout . expect ( 1 ) . process ( ) ;
619
- window . setTimeout . expect ( $sniffer . supportsTransitions ? 500 : 0 ) . process ( ) ;
619
+ window . setTimeout . expect ( $sniffer . transitions ? 500 : 0 ) . process ( ) ;
620
620
} else {
621
621
expect ( window . setTimeout . queue ) . toEqual ( [ ] ) ;
622
622
}
@@ -641,7 +641,7 @@ describe('ngView', function() {
641
641
642
642
$location . path ( '/foo' ) ;
643
643
$rootScope . $digest ( ) ;
644
- if ( $sniffer . supportsTransitions ) {
644
+ if ( $sniffer . transitions ) {
645
645
$window . setTimeout . expect ( 1 ) . process ( ) ;
646
646
$window . setTimeout . expect ( 0 ) . process ( ) ;
647
647
}
@@ -650,7 +650,7 @@ describe('ngView', function() {
650
650
$location . path ( '/bar' ) ;
651
651
$rootScope . $digest ( ) ;
652
652
expect ( n ( element . text ( ) ) ) . toEqual ( '1234' ) ;
653
- if ( $sniffer . supportsTransitions ) {
653
+ if ( $sniffer . transitions ) {
654
654
$window . setTimeout . expect ( 1 ) . process ( ) ;
655
655
$window . setTimeout . expect ( 1 ) . process ( ) ;
656
656
} else {
0 commit comments