aboutsummaryrefslogtreecommitdiffstats
path: root/test/ng/directive/ngClassSpec.js
diff options
context:
space:
mode:
authorMatias Niemelä2013-07-31 15:38:19 -0400
committerMisko Hevery2013-08-02 23:52:37 -0700
commit85d705ab69a89cc5b0c8d2636dede4827d0d8141 (patch)
tree2cf87981f799cbe7db7ae92c1a6ef6c7a86a79b0 /test/ng/directive/ngClassSpec.js
parent52a7c351c9ee7fe35b1ddf2ccd37b472b01519f7 (diff)
downloadangular.js-85d705ab69a89cc5b0c8d2636dede4827d0d8141.tar.bz2
chore(ngMock): rename $animate.process to $animate.flushNext()
Diffstat (limited to 'test/ng/directive/ngClassSpec.js')
-rw-r--r--test/ng/directive/ngClassSpec.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/ng/directive/ngClassSpec.js b/test/ng/directive/ngClassSpec.js
index b038c971..54dee142 100644
--- a/test/ng/directive/ngClassSpec.js
+++ b/test/ng/directive/ngClassSpec.js
@@ -322,27 +322,27 @@ describe('ngClass animations', function() {
$rootScope.val = 'one';
$rootScope.$digest();
- $animate.process('addClass');
- $animate.process('addClass');
+ $animate.flushNext('addClass');
+ $animate.flushNext('addClass');
$timeout.flush();
expect($animate.queue.length).toBe(0);
$rootScope.val = '';
$rootScope.$digest();
- $animate.process('removeClass'); //only removeClass is called
+ $animate.flushNext('removeClass'); //only removeClass is called
expect($animate.queue.length).toBe(0);
$timeout.flush();
$rootScope.val = 'one';
$rootScope.$digest();
- $animate.process('addClass');
+ $animate.flushNext('addClass');
$timeout.flush();
expect($animate.queue.length).toBe(0);
$rootScope.val = 'two';
$rootScope.$digest();
- $animate.process('removeClass');
- $animate.process('addClass');
+ $animate.flushNext('removeClass');
+ $animate.flushNext('addClass');
$timeout.flush();
expect($animate.queue.length).toBe(0);
}));