diff options
Diffstat (limited to 'test/directive/ngEventDirsSpec.js')
| -rw-r--r-- | test/directive/ngEventDirsSpec.js | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/test/directive/ngEventDirsSpec.js b/test/directive/ngEventDirsSpec.js deleted file mode 100644 index c42f9b26..00000000 --- a/test/directive/ngEventDirsSpec.js +++ /dev/null @@ -1,25 +0,0 @@ -'use strict'; - -describe('event directives', function() { - var element; - - - afterEach(function() { - dealoc(element); - }); - - - describe('ng-submit', function() { - - it('should get called on form submit', inject(function($rootScope, $compile) { - element = $compile('<form action="" ng-submit="submitted = true">' + - '<input type="submit"/>' + - '</form>')($rootScope); - $rootScope.$digest(); - expect($rootScope.submitted).not.toBeDefined(); - - browserTrigger(element.children()[0]); - expect($rootScope.submitted).toEqual(true); - })); - }); -}); |
