mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-28 15:28:15 +00:00
fix(ngScenario): correctly disable animations for end 2 end tests
This commit is contained in:
parent
98adc9e038
commit
9d00458563
1 changed files with 3 additions and 8 deletions
|
|
@ -70,15 +70,10 @@ angular.scenario.Application.prototype.navigateTo = function(url, loadFn, errorF
|
||||||
|
|
||||||
if ($window.angular) {
|
if ($window.angular) {
|
||||||
// Disable animations
|
// Disable animations
|
||||||
|
|
||||||
// TODO(i): this doesn't disable javascript animations
|
|
||||||
// we don't need that for our tests, but it should be done
|
|
||||||
$window.angular.resumeBootstrap([['$provide', function($provide) {
|
$window.angular.resumeBootstrap([['$provide', function($provide) {
|
||||||
$provide.decorator('$sniffer', function($delegate) {
|
return ['$animate', function($animate) {
|
||||||
$delegate.transitions = false;
|
$animate.enabled(false);
|
||||||
$delegate.animations = false;
|
}];
|
||||||
return $delegate;
|
|
||||||
});
|
|
||||||
}]]);
|
}]]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue