diff options
| author | Misko Hevery | 2011-02-16 12:00:06 -0500 |
|---|---|---|
| committer | Misko Hevery | 2011-02-18 14:22:51 -0800 |
| commit | 87cbf9f59180d015da78c4286d692afafece5036 (patch) | |
| tree | 5747541809db36c56b56c331a721f99b84c3b669 /test/BinderSpec.js | |
| parent | fd6e5e3f31f374de7be7c80acaa766a14cb753db (diff) | |
| download | angular.js-87cbf9f59180d015da78c4286d692afafece5036.tar.bz2 | |
Remove ng:watch
Closes#143
Diffstat (limited to 'test/BinderSpec.js')
| -rw-r--r-- | test/BinderSpec.js | 20 |
1 files changed, 0 insertions, 20 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(); |
