aboutsummaryrefslogtreecommitdiffstats
path: root/test/ng/directive/ngViewSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2012-06-01 11:31:10 -0700
committerMisko Hevery2012-06-01 16:57:49 -0700
commit7c2428218893f59c6a4499667488009ca67f3385 (patch)
treec78a773e07580423d7c3675ddd5853eb381a4c2b /test/ng/directive/ngViewSpec.js
parent885fb0dd0743859a8985c23e4d0c1855a2be711e (diff)
downloadangular.js-7c2428218893f59c6a4499667488009ca67f3385.tar.bz2
chore($route): rename events
BREAKING CHANGE rename $beforeRouteChange to $routeChangeStart rename $afterRouteChange to $routeChangeSuccess
Diffstat (limited to 'test/ng/directive/ngViewSpec.js')
-rw-r--r--test/ng/directive/ngViewSpec.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ng/directive/ngViewSpec.js b/test/ng/directive/ngViewSpec.js
index 7524884f..efdefae8 100644
--- a/test/ng/directive/ngViewSpec.js
+++ b/test/ng/directive/ngViewSpec.js
@@ -266,8 +266,8 @@ describe('ngView', function() {
});
inject(function($templateCache, $rootScope, $location) {
- $rootScope.$on('$beforeRouteChange', logger('$beforeRouteChange'));
- $rootScope.$on('$afterRouteChange', logger('$afterRouteChange'));
+ $rootScope.$on('$routeChangeStart', logger('$routeChangeStart'));
+ $rootScope.$on('$routeChangeSuccess', logger('$routeChangeSuccess'));
$rootScope.$on('$viewContentLoaded', logger('$viewContentLoaded'));
$templateCache.put('tpl.html', [200, '{{value}}', {}]);
@@ -276,7 +276,7 @@ describe('ngView', function() {
expect(element.text()).toBe('bound-value');
expect(log).toEqual([
- '$beforeRouteChange', 'init-ctrl', '$viewContentLoaded', '$afterRouteChange' ]);
+ '$routeChangeStart', 'init-ctrl', '$viewContentLoaded', '$routeChangeSuccess' ]);
});
});