@@ -1007,7 +1007,7 @@ describe('$location', function() {
1007
1007
$log . info ( 'before' , newUrl , oldUrl , $browser . url ( ) ) ;
1008
1008
event . preventDefault ( ) ;
1009
1009
} ) ;
1010
- $rootScope . $on ( '$locationChangeCompleted ' , function ( event , newUrl , oldUrl ) {
1010
+ $rootScope . $on ( '$locationChangeSuccess ' , function ( event , newUrl , oldUrl ) {
1011
1011
throw Error ( 'location should have been canceled' ) ;
1012
1012
} ) ;
1013
1013
@@ -1026,7 +1026,7 @@ describe('$location', function() {
1026
1026
expect ( $browser . url ( ) ) . toEqual ( 'http://server/' ) ;
1027
1027
} ) ) ;
1028
1028
1029
- it ( 'should fire $locationChangeCompleted event when change from browser location bar' ,
1029
+ it ( 'should fire $locationChangeSuccess event when change from browser location bar' ,
1030
1030
inject ( function ( $log , $location , $browser , $rootScope ) {
1031
1031
$rootScope . $apply ( ) ; // clear initial $locationChangeStart
1032
1032
@@ -1068,7 +1068,7 @@ describe('$location', function() {
1068
1068
event . preventDefault ( ) ;
1069
1069
log += '$locationChangeStart' ;
1070
1070
} ) ;
1071
- $rootScope . $on ( '$locationChangeCompleted ' , function ( ) {
1071
+ $rootScope . $on ( '$locationChangeSuccess ' , function ( ) {
1072
1072
throw new Error ( 'after cancellation in hashbang mode' ) ;
1073
1073
} ) ;
1074
1074
@@ -1100,7 +1100,7 @@ describe('$location', function() {
1100
1100
event . preventDefault ( ) ;
1101
1101
log += '$locationChangeStart' ;
1102
1102
} ) ;
1103
- $rootScope . $on ( '$locationChangeCompleted ' , function ( ) {
1103
+ $rootScope . $on ( '$locationChangeSuccess ' , function ( ) {
1104
1104
throw new Error ( 'after cancalation in html5 mode' ) ;
1105
1105
} ) ;
1106
1106
0 commit comments