diff options
| author | Pete Bacon Darwin | 2013-11-07 18:43:42 +0000 |
|---|---|---|
| committer | Igor Minar | 2013-11-08 01:03:17 -0800 |
| commit | ffa9d0a6db137cba4090e569b8ed4e25a711314e (patch) | |
| tree | ae7fa0b71c9abedd8a02d75eb2ccd4a4d4a0bef3 /test | |
| parent | 9d0045856351e9db48ddf66f66e210d9cc53d24a (diff) | |
| download | angular.js-ffa9d0a6db137cba4090e569b8ed4e25a711314e.tar.bz2 | |
fix(ngClassSpec): clear animation enable fn from postDigestQueue
Diffstat (limited to 'test')
| -rw-r--r-- | test/ng/directive/ngClassSpec.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ng/directive/ngClassSpec.js b/test/ng/directive/ngClassSpec.js index a788e452..ab996e4d 100644 --- a/test/ng/directive/ngClassSpec.js +++ b/test/ng/directive/ngClassSpec.js @@ -371,8 +371,8 @@ describe('ngClass animations', function() { }); inject(function($compile, $rootScope, $rootElement, $animate, $timeout, $document) { - //since we skip animations upon first digest, this needs to be set to true - $animate.enabled(true); + // Enable animations by triggering the first item in the postDigest queue + digestQueue.shift()(); $rootScope.val = 'crazy'; var element = angular.element('<div ng-class="val"></div>'); |
