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/BinderTest.js | 1 - test/directivesSpec.js | 9 +++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/BinderTest.js b/test/BinderTest.js index 9ddf38ab..e37026e7 100644 --- a/test/BinderTest.js +++ b/test/BinderTest.js @@ -703,7 +703,6 @@ BinderTest.prototype.testActionOnAHrefThrowsError = function(){ var input = state.node.find('a'); input.click(); assertEquals('abc', fromJson(input.attr('ng-error')).a); - assertNotNull(input.data('qtip')); assertTrue("should have an error class", input.hasClass('ng-exception')); input.attr('ng-action', '0'); 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