From b1e604e38ceec1714174fb54cc91590a7fe99a92 Mon Sep 17 00:00:00 2001 From: Matias Niemelä Date: Wed, 9 Oct 2013 01:12:03 -0400 Subject: fix($animate): perform internal caching on getComputedStyle to boost the performance of CSS3 transitions/animations Closes #4011 Closes #4124 --- test/ngAnimate/animateSpec.js | 53 +++++++++++++++++++++++++++++++++++++++---- 1 file changed, 49 insertions(+), 4 deletions(-) (limited to 'test/ngAnimate/animateSpec.js') diff --git a/test/ngAnimate/animateSpec.js b/test/ngAnimate/animateSpec.js index 3652e450..cae25266 100644 --- a/test/ngAnimate/animateSpec.js +++ b/test/ngAnimate/animateSpec.js @@ -726,10 +726,10 @@ describe("ngAnimate", function() { it('should re-evaluate the CSS classes for an animation each time', inject(function($animate, $rootScope, $sniffer, $rootElement, $timeout, $compile) { - ss.addRule('.abc', '-webkit-transition:22s linear all;' + - 'transition:22s linear all;'); - ss.addRule('.xyz', '-webkit-transition:11s linear all;' + - 'transition:11s linear all;'); + ss.addRule('.abc.ng-enter', '-webkit-transition:22s linear all;' + + 'transition:22s linear all;'); + ss.addRule('.xyz.ng-enter', '-webkit-transition:11s linear all;' + + 'transition:11s linear all;'); var parent = $compile('