Bug 1382499 - Fix typo in testing/mochitest/tests/SimpleTest/EventUtils.js draft
authorChung-Sheng Fu <cfu@mozilla.com>
Thu, 03 Aug 2017 16:02:07 +0800
changeset 620273 3b5df84764e5109365bc5537236a513ec7a6efe2
parent 620272 71074038b84075376770b4df5a91109860498945
child 620274 2121395e91f46e8a6067e600d518b7e013e4b63d
child 645830 9868c82c7b983e9fb1b0971e2c714ee266bea243
push id71976
push userbmo:cfu@mozilla.com
push dateThu, 03 Aug 2017 08:49:16 +0000
bugs1382499
milestone56.0a1
Bug 1382499 - Fix typo in testing/mochitest/tests/SimpleTest/EventUtils.js MozReview-Commit-ID: B6wo6Px54jk
testing/mochitest/tests/SimpleTest/EventUtils.js
--- a/testing/mochitest/tests/SimpleTest/EventUtils.js
+++ b/testing/mochitest/tests/SimpleTest/EventUtils.js
@@ -403,17 +403,17 @@ function synthesizeMouseAtPoint(left, to
 
 function synthesizeTouchAtPoint(left, top, aEvent, aWindow = window)
 {
   var utils = _getDOMWindowUtils(aWindow);
 
   if (utils) {
     var id = aEvent.id || utils.DEFAULT_TOUCH_POINTER_ID;
     var rx = aEvent.rx || 1;
-    var ry = aEvent.rx || 1;
+    var ry = aEvent.ry || 1;
     var angle = aEvent.angle || 0;
     var force = aEvent.force || 1;
     var modifiers = _parseModifiers(aEvent, aWindow);
 
     if (("type" in aEvent) && aEvent.type) {
       utils.sendTouchEvent(aEvent.type, [id], [left], [top], [rx], [ry], [angle], [force], 1, modifiers);
     }
     else {