From e9e3ee012b50f868f4cd68f3571560680998a19b Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Tue, 13 Mar 2012 16:14:58 -0700 Subject: feat(compile): allow ngForm on attribute and class #feature - ngForm directive can now be used with element, class, and attributes --- test/directive/formSpec.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'test') 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( - '' + - '' + + '
' + + '
' + '' + - '' + - ''); + '
' + + '
'); $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 -- cgit v1.2.3