aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ngAnimate/animateSpec.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/ngAnimate/animateSpec.js b/test/ngAnimate/animateSpec.js
index 41115e42..8da3d1cb 100644
--- a/test/ngAnimate/animateSpec.js
+++ b/test/ngAnimate/animateSpec.js
@@ -1573,6 +1573,21 @@ describe("ngAnimate", function() {
expect(steps.shift()).toEqual(['after', 'ng-enter', 'enter']);
}));
+ it('should not fire DOM callbacks on the element being animated unless registered',
+ inject(function($animate, $rootScope, $compile, $sniffer, $rootElement, $timeout) {
+
+ $animate.enabled(true);
+
+ var element = jqLite('<div></div>');
+ $rootElement.append(element);
+ body.append($rootElement);
+
+ $animate.addClass(element, 'class');
+ $rootScope.$digest();
+
+ $timeout.verifyNoPendingTasks();
+ }));
+
it("should fire a done callback when provided with no animation",
inject(function($animate, $rootScope, $compile, $sniffer, $rootElement, $timeout) {