diff options
| author | Misko Hevery | 2010-04-08 15:05:05 -0700 | 
|---|---|---|
| committer | Misko Hevery | 2010-04-08 15:05:05 -0700 | 
| commit | 41a5c408c242269bf31bc0b774c7304fdf7c2f1c (patch) | |
| tree | aa48e2eff595691b4f4ee07d0307fcd95ebd0956 /test/BinderTest.js | |
| parent | c4ef1f2fdd73bdaeda879e596d3d96e4e68cb6fd (diff) | |
| download | angular.js-41a5c408c242269bf31bc0b774c7304fdf7c2f1c.tar.bz2 | |
tests pass jstd has issues
Diffstat (limited to 'test/BinderTest.js')
| -rw-r--r-- | test/BinderTest.js | 6 | 
1 files changed, 2 insertions, 4 deletions
diff --git a/test/BinderTest.js b/test/BinderTest.js index e72afa9f..ec0c1cb4 100644 --- a/test/BinderTest.js +++ b/test/BinderTest.js @@ -506,10 +506,8 @@ BinderTest.prototype.testFillInOptionValueWhenMissing = function() {  };  BinderTest.prototype.testValidateForm = function() { -  var doc = jqLite(document.body); -  doc.append('<div><input name="name" ng-required>' + +  var c = this.compile('<div><input name="name" ng-required>' +            '<div ng-repeat="item in items"><input name="item.name" ng-required/></div></div>'); -  var c = this.compile(doc);    var items = [{}, {}];    c.scope.$set("items", items);    c.scope.$eval(); @@ -545,7 +543,7 @@ BinderTest.prototype.testValidateOnlyVisibleItems = function(){    c.scope.$set("show", false);    c.scope.$eval(); -  assertEquals(1, c.scope.$get("$invalidWidgets.length")); +  assertEquals(1, c.scope.$invalidWidgets.visible());  };  BinderTest.prototype.testDeleteAttributeIfEvaluatesFalse = function() {  | 
