diff options
| author | Matias Niemelä | 2013-05-07 10:29:29 -0400 |
|---|---|---|
| committer | Misko Hevery | 2013-05-08 15:40:37 -0700 |
| commit | 88c3480aff79e1ff5b1ed8bd7f1e05df8ea1e068 (patch) | |
| tree | 1eb4e66c454fdb802d080096209c111e8d22b733 /test/ng/directive/ngShowHideSpec.js | |
| parent | 0cb04e2e9171ca60d4779cb9e0b4fe73f0926ace (diff) | |
| download | angular.js-88c3480aff79e1ff5b1ed8bd7f1e05df8ea1e068.tar.bz2 | |
feat($sniffer): Add support for supportsAnimations flag for detecting CSS Animations browser support
Diffstat (limited to 'test/ng/directive/ngShowHideSpec.js')
| -rw-r--r-- | test/ng/directive/ngShowHideSpec.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/ng/directive/ngShowHideSpec.js b/test/ng/directive/ngShowHideSpec.js index ecc5b2dc..46bef95d 100644 --- a/test/ng/directive/ngShowHideSpec.js +++ b/test/ng/directive/ngShowHideSpec.js @@ -87,7 +87,7 @@ describe('ngShow / ngHide - ngAnimate', function() { ))($scope); $scope.$digest(); - if ($sniffer.supportsTransitions) { + if ($sniffer.transitions) { expect(element.attr('class')).toContain('custom-show-setup'); window.setTimeout.expect(1).process(); @@ -102,7 +102,7 @@ describe('ngShow / ngHide - ngAnimate', function() { $scope.on = false; $scope.$digest(); - if ($sniffer.supportsTransitions) { + if ($sniffer.transitions) { expect(element.attr('class')).toContain('custom-hide-setup'); window.setTimeout.expect(1).process(); expect(element.attr('class')).toContain('custom-hide-start'); @@ -133,7 +133,7 @@ describe('ngShow / ngHide - ngAnimate', function() { $rootElement.controller('ngAnimate').running = false; $rootScope.val = false; $rootScope.$digest(); - if ($sniffer.supportsTransitions) { + if ($sniffer.transitions) { window.setTimeout.expect(1).process(); window.setTimeout.expect(0).process(); } else { @@ -157,7 +157,7 @@ describe('ngShow / ngHide - ngAnimate', function() { ))($scope); $scope.$digest(); - if ($sniffer.supportsTransitions) { + if ($sniffer.transitions) { expect(element.attr('class')).toContain('custom-hide-setup'); window.setTimeout.expect(1).process(); @@ -173,7 +173,7 @@ describe('ngShow / ngHide - ngAnimate', function() { $scope.off = false; $scope.$digest(); - if ($sniffer.supportsTransitions) { + if ($sniffer.transitions) { expect(element.attr('class')).toContain('custom-show-setup'); window.setTimeout.expect(1).process(); expect(element.attr('class')).toContain('custom-show-start'); |
