diff options
| author | Igor Minar | 2011-01-04 11:53:23 -0800 | 
|---|---|---|
| committer | Igor Minar | 2011-01-04 18:04:00 -0800 | 
| commit | b2631f61709ae71bb29ec6f1353f2a3c1ad33cd3 (patch) | |
| tree | 4c955af5f726d29e2d6004d39403d0843f37711e /test/BinderTest.js | |
| parent | 1430c6d6b1f4edf11b1bd877e8907ac8ab0be923 (diff) | |
| download | angular.js-b2631f61709ae71bb29ec6f1353f2a3c1ad33cd3.tar.bz2 | |
rename scope.$inject to scope.$service
see changelog diff for more info
Diffstat (limited to 'test/BinderTest.js')
| -rw-r--r-- | test/BinderTest.js | 16 | 
1 files changed, 8 insertions, 8 deletions
diff --git a/test/BinderTest.js b/test/BinderTest.js index c5c81ee9..53a61eb0 100644 --- a/test/BinderTest.js +++ b/test/BinderTest.js @@ -515,38 +515,38 @@ BinderTest.prototype.testValidateForm = function() {    var items = [{}, {}];    c.scope.$set("items", items);    c.scope.$eval(); -  assertEquals(3, c.scope.$inject('$invalidWidgets').length); +  assertEquals(3, c.scope.$service('$invalidWidgets').length);    c.scope.$set('name', '');    c.scope.$eval(); -  assertEquals(3, c.scope.$inject('$invalidWidgets').length); +  assertEquals(3, c.scope.$service('$invalidWidgets').length);    c.scope.$set('name', ' ');    c.scope.$eval(); -  assertEquals(3, c.scope.$inject('$invalidWidgets').length); +  assertEquals(3, c.scope.$service('$invalidWidgets').length);    c.scope.$set('name', 'abc');    c.scope.$eval(); -  assertEquals(2, c.scope.$inject('$invalidWidgets').length); +  assertEquals(2, c.scope.$service('$invalidWidgets').length);    items[0].name = 'abc';    c.scope.$eval(); -  assertEquals(1, c.scope.$inject('$invalidWidgets').length); +  assertEquals(1, c.scope.$service('$invalidWidgets').length);    items[1].name = 'abc';    c.scope.$eval(); -  assertEquals(0, c.scope.$inject('$invalidWidgets').length); +  assertEquals(0, c.scope.$service('$invalidWidgets').length);  };  BinderTest.prototype.testValidateOnlyVisibleItems = function(){    var c = this.compile('<div><input name="name" ng:required><input ng:show="show" name="name" ng:required></div>', undefined, jqLite(document.body));    c.scope.$set("show", true);    c.scope.$eval(); -  assertEquals(2, c.scope.$inject('$invalidWidgets').length); +  assertEquals(2, c.scope.$service('$invalidWidgets').length);    c.scope.$set("show", false);    c.scope.$eval(); -  assertEquals(1, c.scope.$inject('$invalidWidgets').visible()); +  assertEquals(1, c.scope.$service('$invalidWidgets').visible());  };  BinderTest.prototype.testDeleteAttributeIfEvaluatesFalse = function() {  | 
