fix(ngScenario): correctly disable animations for end 2 end tests

This commit is contained in:
Pete Bacon Darwin 2013-11-07 11:54:09 +00:00 committed by Igor Minar
parent 98adc9e038
commit 9d00458563

View file

@ -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);
}];
}]]);
}