Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
fix(ngScenario): correctly disable animations for end 2 end tests
Browse files Browse the repository at this point in the history
  • Loading branch information
petebacondarwin authored and IgorMinar committed Nov 8, 2013
1 parent 98adc9e commit 9d00458
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/ngScenario/Application.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}];
}]]);
}

Expand Down

0 comments on commit 9d00458

Please sign in to comment.