mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-23 11:37:38 +08:00
fix($animator): avoid completing the animation asynchronously unless CSS transtiions/animations are present
Closes #4023 Closes #3940
This commit is contained in:
@@ -503,7 +503,6 @@ describe("ngAnimate", function() {
|
||||
element.addClass('ng-hide');
|
||||
expect(element).toBeHidden();
|
||||
$animate.removeClass(element, 'ng-hide');
|
||||
$timeout.flush();
|
||||
expect(element).toBeShown();
|
||||
}));
|
||||
|
||||
@@ -554,7 +553,6 @@ describe("ngAnimate", function() {
|
||||
element.addClass('ng-hide');
|
||||
expect(element).toBeHidden();
|
||||
$animate.removeClass(element, 'ng-hide');
|
||||
$timeout.flush();
|
||||
expect(element).toBeShown();
|
||||
|
||||
$animate.enabled(true);
|
||||
|
||||
Reference in New Issue
Block a user