Permalink
Browse files

Added: requested touch tests

  • Loading branch information...
1 parent 867392a commit 7bb2d94a2c714e8f3d032c1a40d68d33c5ba0799 Lucas Green committed with Jun 15, 2012
Showing with 17 additions and 1 deletion.
  1. +17 −1 test/touch.html
View
@@ -131,7 +131,23 @@
})
}, 50)
},
-
+
+ testScrollDoesNotFireTap: function(t){
+ var element = $('#test').get(0), fired = false
+
+ $('#test').on('tap', function () {
+ fired = true
+ })
+
+ down(element, 0, 0)
+ move(element, 0, 20)
+ move(element, 0, 20)
+
+ up(element)
+
+ t.assertEqual(fired, false)
+ },
+
testSingleTapDoesNotInterfereWithTappingTwice: function(t){
var count = 0, element = $('#test').get(0)

0 comments on commit 7bb2d94

Please sign in to comment.