diff options
| author | Matias Niemelä | 2014-01-13 20:51:10 -0500 | 
|---|---|---|
| committer | Matias Niemelä | 2014-01-14 13:20:27 -0500 | 
| commit | 6df598d9f5a52085b90085b41631ef34f3edc386 (patch) | |
| tree | 644079f7dc9d20522f66e83a8322c3642d04f874 | |
| parent | 4aa9df7a7ae533531dfae1e3eb9646245d6b5ff4 (diff) | |
| download | angular.js-6df598d9f5a52085b90085b41631ef34f3edc386.tar.bz2 | |
chore($animate): remove useless and expired test
| -rw-r--r-- | test/ngAnimate/animateSpec.js | 35 | 
1 files changed, 0 insertions, 35 deletions
| diff --git a/test/ngAnimate/animateSpec.js b/test/ngAnimate/animateSpec.js index e74049be..2a83f2d5 100644 --- a/test/ngAnimate/animateSpec.js +++ b/test/ngAnimate/animateSpec.js @@ -1918,41 +1918,6 @@ describe("ngAnimate", function() {      })); -    it("should not set the transition property flag if only CSS animations are used", -      inject(function($compile, $rootScope, $animate, $sniffer, $timeout) { - -      if (!$sniffer.animations) return; - -      ss.addRule('.sleek-animation.ng-enter', '-webkit-animation: my_animation 2s linear;' + -                                              'animation: my_animation 2s linear'); - -      ss.addRule('.trans.ng-enter',  '-webkit-transition:1s linear all;' + -                                             'transition:1s linear all'); - -      var propertyKey = ($sniffer.vendorPrefix == 'Webkit' ? '-webkit-' : '') + 'transition-property'; - -      var element = html($compile('<div>...</div>')($rootScope)); -      var child = $compile('<div class="skeep-animation">...</div>')($rootScope); -      child.css(propertyKey,'background-color'); - -      $animate.enter(child, element); -      $rootScope.$digest(); -      $timeout.flush(); - -      browserTrigger(child,'transitionend', { timeStamp: Date.now() + 2000, elapsedTime: 2 }); - -      expect(child.css(propertyKey)).toBe('background-color'); -      child.remove(); - -      child = $compile('<div class="sleek-animation">...</div>')($rootScope); -      child.attr('class','trans'); -      $animate.enter(child, element); -      $rootScope.$digest(); - -      expect(child.css(propertyKey)).not.toBe('background-color'); -    })); - -      it("should skip animations if the browser does not support CSS3 transitions and CSS3 animations",        inject(function($compile, $rootScope, $animate, $sniffer) { | 
