aboutsummaryrefslogtreecommitdiffstats
path: root/test/ng/directive/ngIfSpec.js
diff options
context:
space:
mode:
authorMatias Niemelä2013-05-07 10:29:29 -0400
committerMisko Hevery2013-05-08 15:40:37 -0700
commit88c3480aff79e1ff5b1ed8bd7f1e05df8ea1e068 (patch)
tree1eb4e66c454fdb802d080096209c111e8d22b733 /test/ng/directive/ngIfSpec.js
parent0cb04e2e9171ca60d4779cb9e0b4fe73f0926ace (diff)
downloadangular.js-88c3480aff79e1ff5b1ed8bd7f1e05df8ea1e068.tar.bz2
feat($sniffer): Add support for supportsAnimations flag for detecting CSS Animations browser support
Diffstat (limited to 'test/ng/directive/ngIfSpec.js')
-rwxr-xr-xtest/ng/directive/ngIfSpec.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/ng/directive/ngIfSpec.js b/test/ng/directive/ngIfSpec.js
index 081ba5bf..3fa523a7 100755
--- a/test/ng/directive/ngIfSpec.js
+++ b/test/ng/directive/ngIfSpec.js
@@ -120,7 +120,7 @@ describe('ngIf ngAnimate', function () {
expect(element.children().length).toBe(1);
var first = element.children()[0];
- if ($sniffer.supportsTransitions) {
+ if ($sniffer.transitions) {
expect(first.className).toContain('custom-enter-setup');
window.setTimeout.expect(1).process();
expect(first.className).toContain('custom-enter-start');
@@ -147,7 +147,7 @@ describe('ngIf ngAnimate', function () {
expect(element.children().length).toBe(1);
var first = element.children()[0];
- if ($sniffer.supportsTransitions) {
+ if ($sniffer.transitions) {
window.setTimeout.expect(1).process();
window.setTimeout.expect(1000).process();
} else {
@@ -155,9 +155,9 @@ describe('ngIf ngAnimate', function () {
}
$scope.$apply('value = false');
- expect(element.children().length).toBe($sniffer.supportsTransitions ? 1 : 0);
+ expect(element.children().length).toBe($sniffer.transitions ? 1 : 0);
- if ($sniffer.supportsTransitions) {
+ if ($sniffer.transitions) {
expect(first.className).toContain('custom-leave-setup');
window.setTimeout.expect(1).process();
expect(first.className).toContain('custom-leave-start');
@@ -180,7 +180,7 @@ describe('ngIf ngAnimate', function () {
))($scope);
$scope.$apply('value = true');
- if ($sniffer.supportsTransitions) {
+ if ($sniffer.transitions) {
window.setTimeout.expect(1).process();
window.setTimeout.expect(500).process();
} else {