From 88c3480aff79e1ff5b1ed8bd7f1e05df8ea1e068 Mon Sep 17 00:00:00 2001 From: Matias Niemelä Date: Tue, 7 May 2013 10:29:29 -0400 Subject: feat($sniffer): Add support for supportsAnimations flag for detecting CSS Animations browser support --- test/ng/directive/ngViewSpec.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'test/ng/directive/ngViewSpec.js') diff --git a/test/ng/directive/ngViewSpec.js b/test/ng/directive/ngViewSpec.js index c31c2449..908408b3 100644 --- a/test/ng/directive/ngViewSpec.js +++ b/test/ng/directive/ngViewSpec.js @@ -554,7 +554,7 @@ describe('ngView', function() { var child = jqLite(element.children()[0]); applyCSS(child, 'transition', '1s linear all'); - if ($sniffer.supportsTransitions) { + if ($sniffer.transitions) { expect(child.attr('class')).toContain('custom-enter-setup'); window.setTimeout.expect(1).process(); @@ -583,7 +583,7 @@ describe('ngView', function() { $location.path('/'); $rootScope.$digest(); - if ($sniffer.supportsTransitions) { + if ($sniffer.transitions) { expect(child.attr('class')).toContain('custom-leave-setup'); window.setTimeout.expect(1).process(); @@ -614,9 +614,9 @@ describe('ngView', function() { var child = jqLite(element.children()[0]); applyCSS(child, 'transition', '0.5s linear all'); - if($sniffer.supportsTransitions) { + if($sniffer.transitions) { window.setTimeout.expect(1).process(); - window.setTimeout.expect($sniffer.supportsTransitions ? 500 : 0).process(); + window.setTimeout.expect($sniffer.transitions ? 500 : 0).process(); } else { expect(window.setTimeout.queue).toEqual([]); } @@ -641,7 +641,7 @@ describe('ngView', function() { $location.path('/foo'); $rootScope.$digest(); - if ($sniffer.supportsTransitions) { + if ($sniffer.transitions) { $window.setTimeout.expect(1).process(); $window.setTimeout.expect(0).process(); } @@ -650,7 +650,7 @@ describe('ngView', function() { $location.path('/bar'); $rootScope.$digest(); expect(n(element.text())).toEqual('1234'); - if ($sniffer.supportsTransitions) { + if ($sniffer.transitions) { $window.setTimeout.expect(1).process(); $window.setTimeout.expect(1).process(); } else { -- cgit v1.2.3