From 4382df03fa1962aed027742c1b463406c40653c9 Mon Sep 17 00:00:00 2001 From: Matias Niemelä Date: Wed, 28 Aug 2013 19:18:33 -0400 Subject: fix(ngAnimate): cut down on extra $timeout calls --- test/ngRoute/directive/ngViewSpec.js | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'test/ngRoute/directive') diff --git a/test/ngRoute/directive/ngViewSpec.js b/test/ngRoute/directive/ngViewSpec.js index 690243e7..818645ef 100644 --- a/test/ngRoute/directive/ngViewSpec.js +++ b/test/ngRoute/directive/ngViewSpec.js @@ -628,32 +628,22 @@ describe('ngView animations', function() { $rootScope.$digest(); $animate.flushNext('enter'); //ngView - - $timeout.flush(); - $animate.flushNext('enter'); //repeat 1 $animate.flushNext('enter'); //repeat 2 - $timeout.flush(); - expect(element.text()).toEqual('12'); $location.path('/bar'); $rootScope.$digest(); $animate.flushNext('leave'); //ngView old - $timeout.flush(); - $animate.flushNext('enter'); //ngView new - $timeout.flush(); expect(n(element.text())).toEqual(''); //this is midway during the animation $animate.flushNext('enter'); //ngRepeat 3 $animate.flushNext('enter'); //ngRepeat 4 - $timeout.flush(); - expect(element.text()).toEqual('34'); function n(text) { -- cgit v1.2.3