@@ -132,7 +132,7 @@ describe("ngAnimate", function() {
132
132
var captured = false ;
133
133
module ( function ( $provide , $animateProvider ) {
134
134
$provide . value ( '$rootElement' , rootElm ) ;
135
- $animateProvider . register ( '.ani ' , function ( ) {
135
+ $animateProvider . register ( '.capture-animation ' , function ( ) {
136
136
return {
137
137
addClass : function ( element , className , done ) {
138
138
captured = true ;
@@ -147,7 +147,7 @@ describe("ngAnimate", function() {
147
147
148
148
$animate . enabled ( true ) ;
149
149
150
- var element = $compile ( '<div class="ani "></div>' ) ( $rootScope ) ;
150
+ var element = $compile ( '<div class="capture-animation "></div>' ) ( $rootScope ) ;
151
151
rootElm . append ( element ) ;
152
152
153
153
expect ( captured ) . toBe ( false ) ;
@@ -695,17 +695,17 @@ describe("ngAnimate", function() {
695
695
696
696
$animate . enabled ( true ) ;
697
697
698
- ss . addRule ( '.ani .ng-enter, .ani .ng-leave, .ani- fake.ng-enter, .ani -fake.ng-leave' ,
698
+ ss . addRule ( '.real-animation .ng-enter, .real-animation .ng-leave, .real-animation- fake.ng-enter, .real-animation -fake.ng-leave' ,
699
699
'-webkit-animation:1s my_animation;' +
700
700
'animation:1s my_animation;' ) ;
701
701
702
- ss . addRule ( '.ani .ng-enter-stagger, .ani .ng-leave-stagger' ,
702
+ ss . addRule ( '.real-animation .ng-enter-stagger, .real-animation .ng-leave-stagger' ,
703
703
'-webkit-animation-delay:0.1s;' +
704
704
'-webkit-animation-duration:0s;' +
705
705
'animation-delay:0.1s;' +
706
706
'animation-duration:0s;' ) ;
707
707
708
- ss . addRule ( '.ani- fake.ng-enter-stagger, .ani- fake.ng-leave-stagger' ,
708
+ ss . addRule ( '.fake-animation .ng-enter-stagger, .fake-animation .ng-leave-stagger' ,
709
709
'-webkit-animation-delay:0.1s;' +
710
710
'-webkit-animation-duration:1s;' +
711
711
'animation-delay:0.1s;' +
@@ -716,7 +716,7 @@ describe("ngAnimate", function() {
716
716
var elements = [ ] ;
717
717
for ( var i = 0 ; i < 5 ; i ++ ) {
718
718
var newScope = $rootScope . $new ( ) ;
719
- var element = $compile ( '<div class="ani "></div>' ) ( newScope ) ;
719
+ var element = $compile ( '<div class="real-animation "></div>' ) ( newScope ) ;
720
720
$animate . enter ( element , container ) ;
721
721
elements . push ( element ) ;
722
722
} ;
@@ -733,7 +733,7 @@ describe("ngAnimate", function() {
733
733
for ( var i = 0 ; i < 5 ; i ++ ) {
734
734
dealoc ( elements [ i ] ) ;
735
735
var newScope = $rootScope . $new ( ) ;
736
- var element = $compile ( '<div class="ani- fake"></div>' ) ( newScope ) ;
736
+ var element = $compile ( '<div class="fake-animation "></div>' ) ( newScope ) ;
737
737
$animate . enter ( element , container ) ;
738
738
elements [ i ] = element ;
739
739
} ;
@@ -755,11 +755,11 @@ describe("ngAnimate", function() {
755
755
756
756
$animate . enabled ( true ) ;
757
757
758
- ss . addRule ( '.ani .ng-enter, .ani .ng-leave' ,
758
+ ss . addRule ( '.stagger-animation .ng-enter, .stagger-animation .ng-leave' ,
759
759
'-webkit-animation:my_animation 1s 1s, your_animation 1s 2s;' +
760
760
'animation:my_animation 1s 1s, your_animation 1s 2s;' ) ;
761
761
762
- ss . addRule ( '.ani .ng-enter-stagger, .ani .ng-leave-stagger' ,
762
+ ss . addRule ( '.stagger-animation .ng-enter-stagger, .stagger-animation .ng-leave-stagger' ,
763
763
'-webkit-animation-delay:0.1s;' +
764
764
'animation-delay:0.1s;' ) ;
765
765
@@ -768,7 +768,7 @@ describe("ngAnimate", function() {
768
768
var elements = [ ] ;
769
769
for ( var i = 0 ; i < 4 ; i ++ ) {
770
770
var newScope = $rootScope . $new ( ) ;
771
- var element = $compile ( '<div class="ani "></div>' ) ( newScope ) ;
771
+ var element = $compile ( '<div class="stagger-animation "></div>' ) ( newScope ) ;
772
772
$animate . enter ( element , container ) ;
773
773
elements . push ( element ) ;
774
774
} ;
@@ -985,17 +985,17 @@ describe("ngAnimate", function() {
985
985
986
986
$animate . enabled ( true ) ;
987
987
988
- ss . addRule ( '.ani .ng-enter, .ani .ng-leave, .ani- fake.ng-enter, .ani -fake.ng-leave' ,
988
+ ss . addRule ( '.real-animation .ng-enter, .real-animation .ng-leave, .real-animation- fake.ng-enter, .real-animation -fake.ng-leave' ,
989
989
'-webkit-transition:1s linear all;' +
990
990
'transition:1s linear all;' ) ;
991
991
992
- ss . addRule ( '.ani .ng-enter-stagger, .ani .ng-leave-stagger' ,
992
+ ss . addRule ( '.real-animation .ng-enter-stagger, .real-animation .ng-leave-stagger' ,
993
993
'-webkit-transition-delay:0.1s;' +
994
994
'-webkit-transition-duration:0s;' +
995
995
'transition-delay:0.1s;' +
996
996
'transition-duration:0s;' ) ;
997
997
998
- ss . addRule ( '.ani- fake.ng-enter-stagger, .ani- fake.ng-leave-stagger' ,
998
+ ss . addRule ( '.fake-animation .ng-enter-stagger, .fake-animation .ng-leave-stagger' ,
999
999
'-webkit-transition-delay:0.1s;' +
1000
1000
'-webkit-transition-duration:1s;' +
1001
1001
'transition-delay:0.1s;' +
@@ -1006,7 +1006,7 @@ describe("ngAnimate", function() {
1006
1006
var elements = [ ] ;
1007
1007
for ( var i = 0 ; i < 5 ; i ++ ) {
1008
1008
var newScope = $rootScope . $new ( ) ;
1009
- var element = $compile ( '<div class="ani "></div>' ) ( newScope ) ;
1009
+ var element = $compile ( '<div class="real-animation "></div>' ) ( newScope ) ;
1010
1010
$animate . enter ( element , container ) ;
1011
1011
elements . push ( element ) ;
1012
1012
} ;
@@ -1023,7 +1023,7 @@ describe("ngAnimate", function() {
1023
1023
for ( var i = 0 ; i < 5 ; i ++ ) {
1024
1024
dealoc ( elements [ i ] ) ;
1025
1025
var newScope = $rootScope . $new ( ) ;
1026
- var element = $compile ( '<div class="ani- fake"></div>' ) ( newScope ) ;
1026
+ var element = $compile ( '<div class="fake-animation "></div>' ) ( newScope ) ;
1027
1027
$animate . enter ( element , container ) ;
1028
1028
elements [ i ] = element ;
1029
1029
} ;
@@ -1045,11 +1045,11 @@ describe("ngAnimate", function() {
1045
1045
1046
1046
$animate . enabled ( true ) ;
1047
1047
1048
- ss . addRule ( '.ani .ng-enter, .ani.ng-leave' ,
1048
+ ss . addRule ( '.stagger-animation .ng-enter, .ani.ng-leave' ,
1049
1049
'-webkit-transition:1s linear color 2s, 3s linear font-size 4s;' +
1050
1050
'transition:1s linear color 2s, 3s linear font-size 4s;' ) ;
1051
1051
1052
- ss . addRule ( '.ani .ng-enter-stagger, .ani.ng-leave-stagger' ,
1052
+ ss . addRule ( '.stagger-animation .ng-enter-stagger, .ani.ng-leave-stagger' ,
1053
1053
'-webkit-transition-delay:0.1s;' +
1054
1054
'transition-delay:0.1s;' ) ;
1055
1055
@@ -1058,7 +1058,7 @@ describe("ngAnimate", function() {
1058
1058
var elements = [ ] ;
1059
1059
for ( var i = 0 ; i < 4 ; i ++ ) {
1060
1060
var newScope = $rootScope . $new ( ) ;
1061
- var element = $compile ( '<div class="ani "></div>' ) ( newScope ) ;
1061
+ var element = $compile ( '<div class="stagger-animation "></div>' ) ( newScope ) ;
1062
1062
$animate . enter ( element , container ) ;
1063
1063
elements . push ( element ) ;
1064
1064
} ;
@@ -1080,13 +1080,13 @@ describe("ngAnimate", function() {
1080
1080
1081
1081
$animate . enabled ( true ) ;
1082
1082
1083
- ss . addRule ( '.ani .ng-enter, .ani .ng-leave' ,
1083
+ ss . addRule ( '.stagger-animation .ng-enter, .stagger-animation .ng-leave' ,
1084
1084
'-webkit-animation:my_animation 1s 1s, your_animation 1s 2s;' +
1085
1085
'animation:my_animation 1s 1s, your_animation 1s 2s;' +
1086
1086
'-webkit-transition:1s linear all 1s;' +
1087
1087
'transition:1s linear all 1s;' ) ;
1088
1088
1089
- ss . addRule ( '.ani .ng-enter-stagger, .ani .ng-leave-stagger' ,
1089
+ ss . addRule ( '.stagger-animation .ng-enter-stagger, .stagger-animation .ng-leave-stagger' ,
1090
1090
'-webkit-transition-delay:0.1s;' +
1091
1091
'transition-delay:0.1s;' +
1092
1092
'-webkit-animation-delay:0.2s;' +
@@ -1097,7 +1097,7 @@ describe("ngAnimate", function() {
1097
1097
var elements = [ ] ;
1098
1098
for ( var i = 0 ; i < 3 ; i ++ ) {
1099
1099
var newScope = $rootScope . $new ( ) ;
1100
- var element = $compile ( '<div class="ani "></div>' ) ( newScope ) ;
1100
+ var element = $compile ( '<div class="stagger-animation "></div>' ) ( newScope ) ;
1101
1101
$animate . enter ( element , container ) ;
1102
1102
elements . push ( element ) ;
1103
1103
} ;
@@ -1763,16 +1763,16 @@ describe("ngAnimate", function() {
1763
1763
1764
1764
if ( ! $sniffer . animations ) return ;
1765
1765
1766
- ss . addRule ( '.ani .ng-enter' , '-webkit-animation: my_animation 2s linear;' +
1767
- 'animation: my_animation 2s linear' ) ;
1766
+ ss . addRule ( '.sleek-animation .ng-enter' , '-webkit-animation: my_animation 2s linear;' +
1767
+ 'animation: my_animation 2s linear' ) ;
1768
1768
1769
1769
ss . addRule ( '.trans.ng-enter' , '-webkit-transition:1s linear all;' +
1770
1770
'transition:1s linear all' ) ;
1771
1771
1772
1772
var propertyKey = ( $sniffer . vendorPrefix == 'Webkit' ? '-webkit-' : '' ) + 'transition-property' ;
1773
1773
1774
1774
var element = html ( $compile ( '<div>...</div>' ) ( $rootScope ) ) ;
1775
- var child = $compile ( '<div class="ani ">...</div>' ) ( $rootScope ) ;
1775
+ var child = $compile ( '<div class="skeep-animation ">...</div>' ) ( $rootScope ) ;
1776
1776
child . css ( propertyKey , 'background-color' ) ;
1777
1777
1778
1778
$animate . enter ( child , element ) ;
@@ -1784,7 +1784,7 @@ describe("ngAnimate", function() {
1784
1784
expect ( child . css ( propertyKey ) ) . toBe ( 'background-color' ) ;
1785
1785
child . remove ( ) ;
1786
1786
1787
- child = $compile ( '<div class="ani ">...</div>' ) ( $rootScope ) ;
1787
+ child = $compile ( '<div class="sleek-animation ">...</div>' ) ( $rootScope ) ;
1788
1788
child . attr ( 'class' , 'trans' ) ;
1789
1789
$animate . enter ( child , element ) ;
1790
1790
$rootScope . $digest ( ) ;
0 commit comments