aboutsummaryrefslogtreecommitdiffstats
path: root/test/ng/animateSpec.js
diff options
context:
space:
mode:
authorMatias Niemelä2013-07-23 23:02:15 -0400
committerMisko Hevery2013-07-26 23:49:54 -0700
commit8ed0d5b6aa2e29ebc8d2026cb04380ed3343baef (patch)
tree2c14004d495badc36f6336a322160e9ec2c3cf5b /test/ng/animateSpec.js
parent81923f1e41560327f7de6e8fddfda0d2612658f3 (diff)
downloadangular.js-8ed0d5b6aa2e29ebc8d2026cb04380ed3343baef.tar.bz2
chore($animate): replace show/hide with addClass/removeClass
Diffstat (limited to 'test/ng/animateSpec.js')
-rw-r--r--test/ng/animateSpec.js14
1 files changed, 1 insertions, 13 deletions
diff --git a/test/ng/animateSpec.js b/test/ng/animateSpec.js
index 7f440bb5..c5914a74 100644
--- a/test/ng/animateSpec.js
+++ b/test/ng/animateSpec.js
@@ -31,22 +31,10 @@ describe("$animate", function() {
expect(element.text()).toBe('21');
}));
- it("should animate the show animation event", inject(function($animate) {
- element.addClass('ng-hide');
- $animate.show(element);
- expect(element).toBeShown();
- }));
-
- it("should animate the hide animation event", inject(function($animate) {
- expect(element).toBeShown();
- $animate.hide(element);
- expect(element).toBeHidden();
- }));
-
it("should still perform DOM operations even if animations are disabled", inject(function($animate) {
$animate.enabled(false);
expect(element).toBeShown();
- $animate.hide(element);
+ $animate.addClass(element, 'ng-hide');
expect(element).toBeHidden();
}));
});