aboutsummaryrefslogtreecommitdiffstats
path: root/test/ScopeSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2010-12-01 20:29:54 -0800
committerMisko Hevery2010-12-02 22:45:57 -0800
commit5a8ad8fe329fc09898ff43a060710265d38393be (patch)
tree95058036d40b1dd993e2a9c4094ebd34b2751707 /test/ScopeSpec.js
parent41d5938883a3d06ffe8a88a51efd8d1896f7d747 (diff)
downloadangular.js-5a8ad8fe329fc09898ff43a060710265d38393be.tar.bz2
Closes #170. Corrected the behavior of select when options are ng:repeated
- Delete $postEval method, as it was a hack
Diffstat (limited to 'test/ScopeSpec.js')
-rw-r--r--test/ScopeSpec.js22
1 files changed, 0 insertions, 22 deletions
diff --git a/test/ScopeSpec.js b/test/ScopeSpec.js
index 38350b17..acded34b 100644
--- a/test/ScopeSpec.js
+++ b/test/ScopeSpec.js
@@ -209,28 +209,6 @@ describe('scope/model', function(){
});
});
- describe('$postEval', function(){
- it('should eval function once and last', function(){
- var log = '';
- var scope = createScope();
- function onceOnly(){log+= '@';}
- scope.$onEval(function(){log+= '.';});
- scope.$postEval(function(){log+= '!';});
- scope.$postEval(onceOnly);
- scope.$postEval(onceOnly);
- scope.$postEval(); // ignore
- scope.$eval();
- expect(log).toEqual('.!@');
- scope.$eval();
- expect(log).toEqual('.!@.');
-
- scope.$postEval(onceOnly);
- scope.$postEval(onceOnly);
- scope.$eval();
- expect(log).toEqual('.!@..@');
- });
- });
-
describe('$new', function(){
it('should $new should create new child scope and $become controller', function(){
var parent = createScope(null, {exampleService: function(){return 'Example Service';}});