diff options
| author | Misko Hevery | 2010-04-12 16:24:28 -0700 | 
|---|---|---|
| committer | Misko Hevery | 2010-04-12 16:24:28 -0700 | 
| commit | 713307b6505a56ca7b5423b36e297070d756ff15 (patch) | |
| tree | 9c229723ee42350e85fa376911e5f3501e6e3762 /test/ValidatorsTest.js | |
| parent | 841640e540b5e054a97e650bdd7b560680e94840 (diff) | |
| download | angular.js-713307b6505a56ca7b5423b36e297070d756ff15.tar.bz2 | |
added ng-eval-order attribute
Diffstat (limited to 'test/ValidatorsTest.js')
| -rw-r--r-- | test/ValidatorsTest.js | 8 | 
1 files changed, 6 insertions, 2 deletions
diff --git a/test/ValidatorsTest.js b/test/ValidatorsTest.js index 17c67d38..49416ae4 100644 --- a/test/ValidatorsTest.js +++ b/test/ValidatorsTest.js @@ -88,11 +88,15 @@ describe('Validator:asynchronous', function(){    var value, fn;    beforeEach(function(){ +    var invalidWidgets = []; +    invalidWidgets.markInvalid = function(element){ +      invalidWidgets.push(element); +    };      value = null;      fn = null;      self = {          $element:jqLite('<input />'), -        $invalidWidgets:[], +        $invalidWidgets:invalidWidgets,          $updateView: noop      };    }); @@ -125,7 +129,7 @@ describe('Validator:asynchronous', function(){    it("should not make second request to same value", function(){      asynchronous.call(self, "kai", function(v,f){value=v; fn=f;});      expect(value).toEqual('kai'); -    expect(self.$invalidWidgets).toEqual([self.$element]); +    expect(self.$invalidWidgets[0][0]).toEqual(self.$element[0]);      var spy = jasmine.createSpy();      asynchronous.call(self, "kai", spy);  | 
