aboutsummaryrefslogtreecommitdiffstats
path: root/test/ng/rootScopeSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2012-09-07 11:14:48 -0700
committerMisko Hevery2012-09-11 16:12:41 -0700
commit331cd5a8cb5efdafe8ad7eb386aed4033cfc1bb3 (patch)
tree6834ecdae81eee6c69fabad67fdb5eb537cfb50f /test/ng/rootScopeSpec.js
parentf2ebfa16b0849a1ea26f73ae63dcb0e56f066646 (diff)
downloadangular.js-331cd5a8cb5efdafe8ad7eb386aed4033cfc1bb3.tar.bz2
fix($evalAsync): have only one global async queue
Having one async queue per scope complicates the matters when users wish to do partial scope updates, since many services put events on the rootScope. By having single queue the programing model is simplified.
Diffstat (limited to 'test/ng/rootScopeSpec.js')
-rw-r--r--test/ng/rootScopeSpec.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ng/rootScopeSpec.js b/test/ng/rootScopeSpec.js
index 2ceb0eec..9830d981 100644
--- a/test/ng/rootScopeSpec.js
+++ b/test/ng/rootScopeSpec.js
@@ -441,7 +441,7 @@ describe('Scope', function() {
child.$evalAsync(function(scope) { log += 'child.async;'; });
child.$watch('value', function() { log += 'child.$digest;'; });
$rootScope.$digest();
- expect(log).toEqual('parent.async;parent.$digest;child.async;child.$digest;');
+ expect(log).toEqual('parent.async;child.async;parent.$digest;child.$digest;');
}));
it('should cause a $digest rerun', inject(function($rootScope) {