diff --git a/src/ng/directive/form.js b/src/ng/directive/form.js index 298c66ea183a..31ed9aa9886a 100644 --- a/src/ng/directive/form.js +++ b/src/ng/directive/form.js @@ -364,7 +364,8 @@ function FormController(element, attrs, $scope, $animate, $interpolate) { * to handle the form submission in an application-specific way. * * For this reason, Angular prevents the default action (form submission to the server) unless the - * `
')(scope); + doc.on('submit', callback); + + browserTrigger(doc, 'submit'); + expect(callback).toHaveBeenCalledOnce(); + }); });