Bug 1203901 - Increase the long-tap threshold time for test_basic_pan.html draft
authorKartikaya Gupta <kgupta@mozilla.com>
Sat, 03 Oct 2015 22:01:11 -0400
changeset 298571 39fa423266b6122cba59e23433957073a6af4e85
parent 298570 cf1df9a6e1947d0fda60684ef9e6607bcb3f2630
child 509891 77acffe15f91a5e439241fc6837cb28428c243c5
push id6094
push userkgupta@mozilla.com
push dateSun, 04 Oct 2015 02:01:52 +0000
bugs1203901
milestone44.0a1
Bug 1203901 - Increase the long-tap threshold time for test_basic_pan.html
gfx/layers/apz/test/mochitest/test_basic_pan.html
--- a/gfx/layers/apz/test/mochitest/test_basic_pan.html
+++ b/gfx/layers/apz/test/mochitest/test_basic_pan.html
@@ -35,17 +35,21 @@ function testDone() {
 
 window.onload = function() {
   SpecialPowers.pushPrefEnv(
     { "set":
       [
         // Dropping the touch slop to 0 makes the tests easier to write because
         // we can just do a one-pixel drag to get over the pan threshold rather
         // than having to hard-code some larger value.
-        ["apz.touch_start_tolerance", "0.0"]
+        ["apz.touch_start_tolerance", "0.0"],
+        // The touchstart from the drag can turn into a long-tap if the touch-move
+        // events get held up. Try to prevent that by making long-taps require
+        // a 10 second hold.
+        ["ui.click_hold_context_menus.delay", "10000"],
       ]
     }, testDone);
 };
 
   </script>
 </head>
 <body>
 </body>