From 2a63dfa6cc7889888f4296fff2944e74ff30b3af Mon Sep 17 00:00:00 2001 From: Matias Niemelä Date: Tue, 1 Oct 2013 14:12:19 -0400 Subject: fix($animator): avoid completing the animation asynchronously unless CSS transtiions/animations are present Closes #4023 Closes #3940 --- test/ngAnimate/animateSpec.js | 2 -- 1 file changed, 2 deletions(-) (limited to 'test') diff --git a/test/ngAnimate/animateSpec.js b/test/ngAnimate/animateSpec.js index 81d84f96..f5faa024 100644 --- a/test/ngAnimate/animateSpec.js +++ b/test/ngAnimate/animateSpec.js @@ -503,7 +503,6 @@ describe("ngAnimate", function() { element.addClass('ng-hide'); expect(element).toBeHidden(); $animate.removeClass(element, 'ng-hide'); - $timeout.flush(); expect(element).toBeShown(); })); @@ -554,7 +553,6 @@ describe("ngAnimate", function() { element.addClass('ng-hide'); expect(element).toBeHidden(); $animate.removeClass(element, 'ng-hide'); - $timeout.flush(); expect(element).toBeShown(); $animate.enabled(true); -- cgit v1.2.3