diff options
| author | Misko Hevery | 2010-03-22 18:20:49 -0700 |
|---|---|---|
| committer | Misko Hevery | 2010-03-22 18:20:49 -0700 |
| commit | 7c87c17d08dbba318af1a149c0bbedb696b03458 (patch) | |
| tree | 4971b6aa32270f257084f149e5a8e005ce69b0af /test/directivesSpec.js | |
| parent | 6f8276a8e3735396999bd158005ca86bb1bb0978 (diff) | |
| download | angular.js-7c87c17d08dbba318af1a149c0bbedb696b03458.tar.bz2 | |
upgraded jquery to 1.4.2 and made ng-action work with jquery
Diffstat (limited to 'test/directivesSpec.js')
| -rw-r--r-- | test/directivesSpec.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/directivesSpec.js b/test/directivesSpec.js index e0e53eeb..447698a3 100644 --- a/test/directivesSpec.js +++ b/test/directivesSpec.js @@ -94,4 +94,13 @@ describe("directives", function(){ scope.updateView(); expect(scope.get('count')).toEqual(1); }); + + it('should ng-action', function(){ + var scope = compile('<div ng-action="clicked = true"></div>'); + scope.updateView(); + expect(scope.get('clicked')).toBeFalsy(); + + jQuery(element.element).click(); + expect(scope.get('clicked')).toEqual(true); + }); }); |
