aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMisko Hevery2011-02-16 12:00:06 -0500
committerMisko Hevery2011-02-18 14:22:51 -0800
commit87cbf9f59180d015da78c4286d692afafece5036 (patch)
tree5747541809db36c56b56c331a721f99b84c3b669 /test
parentfd6e5e3f31f374de7be7c80acaa766a14cb753db (diff)
downloadangular.js-87cbf9f59180d015da78c4286d692afafece5036.tar.bz2
Remove ng:watch
Closes#143
Diffstat (limited to 'test')
-rw-r--r--test/BinderSpec.js20
-rw-r--r--test/directivesSpec.js12
2 files changed, 0 insertions, 32 deletions
diff --git a/test/BinderSpec.js b/test/BinderSpec.js
index ce2a9d3a..80a950b0 100644
--- a/test/BinderSpec.js
+++ b/test/BinderSpec.js
@@ -226,12 +226,6 @@ describe('Binder', function(){
'</ul>', sortedHtml(a.view));
});
- it('ExpandEntityTag', function(){
- assertEquals(
- '<div ng-entity="Person" ng:watch="$anchor.a:1"></div>',
- this.compileToHtml('<div ng-entity="Person" ng:watch="$anchor.a:1"/>'));
- });
-
it('DoNotOverwriteCustomAction', function(){
var html = this.compileToHtml('<input type="submit" value="Save" action="foo();">');
assertTrue(html.indexOf('action="foo();"') > 0 );
@@ -612,20 +606,6 @@ describe('Binder', function(){
assertEquals("male", male.val());
});
- it('ItShouldListenOnRightScope', function(){
- var c = this.compile(
- '<ul ng:init="counter=0; gCounter=0" ng:watch="w:counter=counter+1">' +
- '<li ng:repeat="n in [1,2,4]" ng:watch="w:counter=counter+1;w:$root.gCounter=$root.gCounter+n"/></ul>');
- c.scope.$eval();
- assertEquals(1, c.scope.$get("counter"));
- assertEquals(7, c.scope.$get("gCounter"));
-
- c.scope.$set("w", "something");
- c.scope.$eval();
- assertEquals(2, c.scope.$get("counter"));
- assertEquals(14, c.scope.$get("gCounter"));
- });
-
it('ItShouldRepeatOnHashes', function(){
var x = this.compile('<ul><li ng:repeat="(k,v) in {a:0,b:1}" ng:bind=\"k + v\"></li></ul>');
x.scope.$eval();
diff --git a/test/directivesSpec.js b/test/directivesSpec.js
index 2d4703a2..c02eb025 100644
--- a/test/directivesSpec.js
+++ b/test/directivesSpec.js
@@ -137,18 +137,6 @@ describe("directive", function(){
expect(input.checked).toEqual(true);
});
- it('should ng:watch', function(){
- var scope = compile('<div ng:watch="i: count = count + 1" ng:init="count = 0">');
- scope.$eval();
- scope.$eval();
- expect(scope.$get('count')).toEqual(1);
-
- scope.$set('i', 0);
- scope.$eval();
- scope.$eval();
- expect(scope.$get('count')).toEqual(2);
- });
-
describe('ng:click', function(){
it('should get called on a click', function(){
var scope = compile('<div ng:click="clicked = true"></div>');