Bug 1311406 - Make sure the touchstart event isn't so close to the left edge of the screen, or it triggers Windows 8 edge gesture detection code which hangs the test. r?botond draft
authorKartikaya Gupta <kgupta@mozilla.com>
Wed, 19 Oct 2016 10:53:48 -0400
changeset 427010 9f930d14da68a3d8711e951579f9e133512596fe
parent 427000 03e795912fdbb000ac95f040d84e26d3eaa8c20a
child 534355 49e64c232e845c18d083753c81e0f396b1d9618d
push id32895
push userkgupta@mozilla.com
push dateWed, 19 Oct 2016 14:54:23 +0000
reviewersbotond
bugs1311406
milestone52.0a1
Bug 1311406 - Make sure the touchstart event isn't so close to the left edge of the screen, or it triggers Windows 8 edge gesture detection code which hangs the test. r?botond MozReview-Commit-ID: HVP2iA07Pdg
gfx/layers/apz/test/mochitest/helper_bug1162771.html
--- a/gfx/layers/apz/test/mochitest/helper_bug1162771.html
+++ b/gfx/layers/apz/test/mochitest/helper_bug1162771.html
@@ -27,18 +27,18 @@ function* test(testDriver) {
   document.body.ontouchend = function(e) {
     if (e.target === v || e.target === a || e.target === d) {
       e.target._gotTouchend = true;
       ok(true, 'Got touchend event on #' + e.target.id);
     }
     testDriver();
   };
 
-  yield synthesizeNativeTouch(v, 5, 5, SpecialPowers.DOMWindowUtils.TOUCH_CONTACT);
-  yield synthesizeNativeTouch(v, 5, 5, SpecialPowers.DOMWindowUtils.TOUCH_REMOVE);
+  yield synthesizeNativeTouch(v, 25, 5, SpecialPowers.DOMWindowUtils.TOUCH_CONTACT);
+  yield synthesizeNativeTouch(v, 25, 5, SpecialPowers.DOMWindowUtils.TOUCH_REMOVE);
   ok(v._gotTouchend, 'Touchend was received on video element');
 
   yield synthesizeNativeTouch(a, 5, 5, SpecialPowers.DOMWindowUtils.TOUCH_CONTACT);
   yield synthesizeNativeTouch(a, 5, 5, SpecialPowers.DOMWindowUtils.TOUCH_REMOVE);
   ok(a._gotTouchend, 'Touchend was received on audio element');
 
   yield synthesizeNativeTouch(d, 5, 5, SpecialPowers.DOMWindowUtils.TOUCH_CONTACT);
   yield synthesizeNativeTouch(d, 5, 5, SpecialPowers.DOMWindowUtils.TOUCH_REMOVE);