mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +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) {
|
||||
// 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) {
|
||||
$provide.decorator('$sniffer', function($delegate) {
|
||||
$delegate.transitions = false;
|
||||
$delegate.animations = false;
|
||||
return $delegate;
|
||||
});
|
||||
return ['$animate', function($animate) {
|
||||
$animate.enabled(false);
|
||||
}];
|
||||
}]]);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue