@@ -772,36 +772,4 @@ describe('Ionic View Service', function() {
772
772
expect ( $document [ 0 ] . title ) . toEqual ( 'New Title' ) ;
773
773
} ) ) ;
774
774
775
- it ( 'should transition w/out animation' , inject ( function ( $compile ) {
776
- var opts = { } ;
777
- opts . parentElement = $compile ( "<div><leaving>leaving</leaving></div>" ) ( rootScope ) ;
778
- rootScope . $digest ( ) ;
779
- opts . leavingElement = opts . parentElement . find ( 'leaving' ) ;
780
- opts . enteringElement = $compile ( "<entering>entering</entering>" ) ( rootScope ) ;
781
-
782
- expect ( opts . parentElement . html ( ) ) . toContain ( "leaving" ) ;
783
- viewService . transition ( opts ) ;
784
- expect ( opts . parentElement . html ( ) ) . toContain ( "entering" ) ;
785
- } ) ) ;
786
-
787
- it ( 'should add the animation classname' , inject ( function ( $compile ) {
788
- var element = $compile ( "<div></div>" ) ( rootScope ) ;
789
- viewService . setAnimationClass ( element , 'animation-class' , null ) ;
790
- expect ( element . hasClass ( 'animation-class' ) ) . toEqual ( true ) ;
791
- } ) ) ;
792
-
793
- it ( 'should add the reverse classname' , inject ( function ( $compile ) {
794
- var element = $compile ( "<div></div>" ) ( rootScope ) ;
795
- viewService . setAnimationClass ( element , 'animation-class' , 'back' ) ;
796
- expect ( element . hasClass ( 'reverse' ) ) . toEqual ( true ) ;
797
- } ) ) ;
798
-
799
- it ( 'should remove the reverse classname' , inject ( function ( $compile ) {
800
- var element = $compile ( "<div class='whatever animation-class reverse'></div>" ) ( rootScope ) ;
801
- viewService . setAnimationClass ( element , 'animation-class' , 'forward' ) ;
802
- expect ( element . hasClass ( 'animation-class' ) ) . toEqual ( true ) ;
803
- expect ( element . hasClass ( 'whatever' ) ) . toEqual ( true ) ;
804
- expect ( element . hasClass ( 'reverse' ) ) . toEqual ( false ) ;
805
- } ) ) ;
806
-
807
775
} ) ;
0 commit comments