diff options
| author | Matias Niemelä | 2013-08-28 19:32:20 -0400 |
|---|---|---|
| committer | Misko Hevery | 2013-09-03 17:06:49 -0700 |
| commit | 36ad40b18cfdd0690411a5169aa94e222946b5cf (patch) | |
| tree | 221c73bebdd87e91fa56fb3bc55cbf67e59cc0c0 /test/ngRoute/directive/ngViewSpec.js | |
| parent | 4e15c4fb47e93c1f6619a09125bc9a350e39b113 (diff) | |
| download | angular.js-36ad40b18cfdd0690411a5169aa94e222946b5cf.tar.bz2 | |
fix(ngAnimate): ensure that ngClass is always compiled before enter, leave and move animations
Closes #3727
Closes #3603
Diffstat (limited to 'test/ngRoute/directive/ngViewSpec.js')
| -rw-r--r-- | test/ngRoute/directive/ngViewSpec.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ngRoute/directive/ngViewSpec.js b/test/ngRoute/directive/ngViewSpec.js index 818645ef..1bce2b62 100644 --- a/test/ngRoute/directive/ngViewSpec.js +++ b/test/ngRoute/directive/ngViewSpec.js @@ -637,6 +637,9 @@ describe('ngView animations', function() { $rootScope.$digest(); $animate.flushNext('leave'); //ngView old + + $rootScope.$digest(); + $animate.flushNext('enter'); //ngView new expect(n(element.text())).toEqual(''); //this is midway during the animation @@ -644,6 +647,8 @@ describe('ngView animations', function() { $animate.flushNext('enter'); //ngRepeat 3 $animate.flushNext('enter'); //ngRepeat 4 + $rootScope.$digest(); + expect(element.text()).toEqual('34'); function n(text) { |
