diff options
| author | Pete Bacon Darwin | 2013-11-07 11:54:09 +0000 |
|---|---|---|
| committer | Igor Minar | 2013-11-08 01:03:17 -0800 |
| commit | 9d0045856351e9db48ddf66f66e210d9cc53d24a (patch) | |
| tree | f69f32d67d1530d59e2875735debcfec47784a7a | |
| parent | 98adc9e0383dc05efad168f30a0725cb67f5eda8 (diff) | |
| download | angular.js-9d0045856351e9db48ddf66f66e210d9cc53d24a.tar.bz2 | |
fix(ngScenario): correctly disable animations for end 2 end tests
| -rw-r--r-- | src/ngScenario/Application.js | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/ngScenario/Application.js b/src/ngScenario/Application.js index 15cd42e3..f4b90fdd 100644 --- a/src/ngScenario/Application.js +++ b/src/ngScenario/Application.js @@ -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); + }]; }]]); } |
