diff options
| author | Misko Hevery | 2012-03-13 16:14:58 -0700 |
|---|---|---|
| committer | Misko Hevery | 2012-03-13 16:59:10 -0700 |
| commit | e9e3ee012b50f868f4cd68f3571560680998a19b (patch) | |
| tree | a025cd1d4d28ea786e0e0978ab283526ee841ece /test/directive/formSpec.js | |
| parent | de9464c1431906883bdf180fb00615e6fa371577 (diff) | |
| download | angular.js-e9e3ee012b50f868f4cd68f3571560680998a19b.tar.bz2 | |
feat(compile): allow ngForm on attribute and class
#feature
- ngForm directive can now be used with element, class, and attributes
Diffstat (limited to 'test/directive/formSpec.js')
| -rw-r--r-- | test/directive/formSpec.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/directive/formSpec.js b/test/directive/formSpec.js index 588b9f49..ec16e19b 100644 --- a/test/directive/formSpec.js +++ b/test/directive/formSpec.js @@ -176,17 +176,19 @@ describe('form', function() { it('should deregister a child form when its DOM is removed', function() { doc = jqLite( - '<ng:form name="parent">' + - '<ng:form name="child">' + + '<form name="parent">' + + '<div class="ng-form" name="child">' + '<input ng:model="modelA" name="inputA" required>' + - '</ng:form>' + - '</ng:form>'); + '</div>' + + '</form>'); $compile(doc)(scope); scope.$apply(); var parent = scope.parent, child = scope.child; + expect(parent).toBeDefined(); + expect(child).toBeDefined(); expect(parent.$error.required).toEqual([child]); doc.children().remove(); //remove child |
