diff options
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); | 
