aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/BinderTest.js1
-rw-r--r--test/directivesSpec.js9
2 files changed, 9 insertions, 1 deletions
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('<div ng-action="clicked = true"></div>');
+ scope.updateView();
+ expect(scope.get('clicked')).toBeFalsy();
+
+ jQuery(element.element).click();
+ expect(scope.get('clicked')).toEqual(true);
+ });
});