diff options
| author | Igor Minar | 2012-06-10 17:42:44 -0700 |
|---|---|---|
| committer | Igor Minar | 2012-06-10 17:42:44 -0700 |
| commit | d37d595b67ccb673e37187c050005ee1462cf243 (patch) | |
| tree | 520e9b623c1dc290528027ad3f1480e60d768ff4 | |
| parent | 5d70e4a89cd9b3d430bb81f438cf03e956d9a9d2 (diff) | |
| download | angular.js-d37d595b67ccb673e37187c050005ee1462cf243.tar.bz2 | |
test($location): fix tests borked during event renaming
| -rw-r--r-- | test/ng/locationSpec.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/ng/locationSpec.js b/test/ng/locationSpec.js index 8b876a3c..e6ee6604 100644 --- a/test/ng/locationSpec.js +++ b/test/ng/locationSpec.js @@ -1007,7 +1007,7 @@ describe('$location', function() { $log.info('before', newUrl, oldUrl, $browser.url()); event.preventDefault(); }); - $rootScope.$on('$locationChangeCompleted', function(event, newUrl, oldUrl) { + $rootScope.$on('$locationChangeSuccess', function(event, newUrl, oldUrl) { throw Error('location should have been canceled'); }); @@ -1026,7 +1026,7 @@ describe('$location', function() { expect($browser.url()).toEqual('http://server/'); })); - it ('should fire $locationChangeCompleted event when change from browser location bar', + it ('should fire $locationChangeSuccess event when change from browser location bar', inject(function($log, $location, $browser, $rootScope) { $rootScope.$apply(); // clear initial $locationChangeStart @@ -1068,7 +1068,7 @@ describe('$location', function() { event.preventDefault(); log += '$locationChangeStart'; }); - $rootScope.$on('$locationChangeCompleted', function() { + $rootScope.$on('$locationChangeSuccess', function() { throw new Error('after cancellation in hashbang mode'); }); @@ -1100,7 +1100,7 @@ describe('$location', function() { event.preventDefault(); log += '$locationChangeStart'; }); - $rootScope.$on('$locationChangeCompleted', function() { + $rootScope.$on('$locationChangeSuccess', function() { throw new Error('after cancalation in html5 mode'); }); |
