From 7c87c17d08dbba318af1a149c0bbedb696b03458 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Mon, 22 Mar 2010 18:20:49 -0700 Subject: upgraded jquery to 1.4.2 and made ng-action work with jquery --- test/directivesSpec.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test/directivesSpec.js') 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('
'); + scope.updateView(); + expect(scope.get('clicked')).toBeFalsy(); + + jQuery(element.element).click(); + expect(scope.get('clicked')).toEqual(true); + }); }); -- cgit v1.2.3