diff options
| author | Matias Niemelä | 2013-07-31 15:38:19 -0400 |
|---|---|---|
| committer | Misko Hevery | 2013-08-02 23:52:37 -0700 |
| commit | 85d705ab69a89cc5b0c8d2636dede4827d0d8141 (patch) | |
| tree | 2cf87981f799cbe7db7ae92c1a6ef6c7a86a79b0 /test/ng/directive/ngIncludeSpec.js | |
| parent | 52a7c351c9ee7fe35b1ddf2ccd37b472b01519f7 (diff) | |
| download | angular.js-85d705ab69a89cc5b0c8d2636dede4827d0d8141.tar.bz2 | |
chore(ngMock): rename $animate.process to $animate.flushNext()
Diffstat (limited to 'test/ng/directive/ngIncludeSpec.js')
| -rw-r--r-- | test/ng/directive/ngIncludeSpec.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/ng/directive/ngIncludeSpec.js b/test/ng/directive/ngIncludeSpec.js index c55fb0b3..f1bfbba2 100644 --- a/test/ng/directive/ngIncludeSpec.js +++ b/test/ng/directive/ngIncludeSpec.js @@ -388,7 +388,7 @@ describe('ngInclude animations', function() { ))($rootScope); $rootScope.$digest(); - item = $animate.process('enter').element; + item = $animate.flushNext('enter').element; expect(item.text()).toBe('data'); })); @@ -404,13 +404,13 @@ describe('ngInclude animations', function() { ))($rootScope); $rootScope.$digest(); - item = $animate.process('enter').element; + item = $animate.flushNext('enter').element; expect(item.text()).toBe('data'); $rootScope.tpl = ''; $rootScope.$digest(); - item = $animate.process('leave').element; + item = $animate.flushNext('leave').element; expect(item.text()).toBe('data'); })); @@ -427,14 +427,14 @@ describe('ngInclude animations', function() { ))($rootScope); $rootScope.$digest(); - item = $animate.process('enter').element; + item = $animate.flushNext('enter').element; expect(item.text()).toBe('one'); $rootScope.tpl = 'two'; $rootScope.$digest(); - var itemA = $animate.process('leave').element; - var itemB = $animate.process('enter').element; + var itemA = $animate.flushNext('leave').element; + var itemB = $animate.flushNext('enter').element; expect(itemA.attr('ng-include')).toBe('tpl'); expect(itemB.attr('ng-include')).toBe('tpl'); expect(itemA).not.toEqual(itemB); |
