diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/ng/directive/formSpec.js | 3 | 
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ng/directive/formSpec.js b/test/ng/directive/formSpec.js index 51c6929f..2fd55f60 100644 --- a/test/ng/directive/formSpec.js +++ b/test/ng/directive/formSpec.js @@ -284,6 +284,9 @@ describe('form', function() {        inputB.$setValidity('MyError', true);        expect(parent.$error.MyError).toBe(false);        expect(child.$error.MyError).toBe(false); + +      child.$setDirty(); +      expect(parent.$dirty).toBeTruthy();      });  | 
