aboutsummaryrefslogtreecommitdiffstats
path: root/test/ngMobile/directive/ngClickSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/ngMobile/directive/ngClickSpec.js')
-rw-r--r--test/ngMobile/directive/ngClickSpec.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/ngMobile/directive/ngClickSpec.js b/test/ngMobile/directive/ngClickSpec.js
index 1147f0a2..9038514c 100644
--- a/test/ngMobile/directive/ngClickSpec.js
+++ b/test/ngMobile/directive/ngClickSpec.js
@@ -358,4 +358,20 @@ describe('ngClick (mobile)', function() {
});
+ describe('the normal click event', function() {
+ it('should be capturable by other handlers', inject(function($rootScope, $compile) {
+ var called = false;
+
+ element = $compile('<div ng-click="event = $event" ></div>')($rootScope);
+
+ element.on('click', function() {
+ called = true;
+ });
+
+ browserTrigger(element, 'touchstart', [], 10, 10);
+ browserTrigger(element, 'touchend', [], 10, 10);
+
+ expect(called).toEqual(true);
+ }));
+ });
});