aboutsummaryrefslogtreecommitdiffstats
path: root/test/ng/animateSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/ng/animateSpec.js')
-rw-r--r--test/ng/animateSpec.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/ng/animateSpec.js b/test/ng/animateSpec.js
index 79115c1e..e982862a 100644
--- a/test/ng/animateSpec.js
+++ b/test/ng/animateSpec.js
@@ -40,6 +40,18 @@ describe("$animate", function() {
expect(element).toBeHidden();
}));
+ it("should add and remove classes on SVG elements", inject(function($animate) {
+ if (!window.SVGElement) return;
+ var svg = jqLite('<svg><rect></rect></svg>');
+ var rect = svg.children();
+ $animate.enabled(false);
+ expect(rect).toBeShown();
+ $animate.addClass(rect, 'ng-hide');
+ expect(rect).toBeHidden();
+ $animate.removeClass(rect, 'ng-hide');
+ expect(rect).not.toBeHidden();
+ }));
+
it("should throw error on wrong selector", function() {
module(function($animateProvider) {
expect(function() {