Port bug 1603074 - Improve `synthesizePlainDragAndDrop()` in EventUtils.js. rs=bustage-fix
authorGeoff Lankow <geoff@darktrojan.net>
Mon, 23 Dec 2019 18:06:46 +1300
changeset 37802 c98a0cffba3a46524f70b91f09f2650c3e65d534
parent 37801 81c5718b290ee7232e534979e446e810a01a9a51
child 37803 77e6b123861641cfde5c9b7215e388afd5995cb0
push id397
push userclokep@gmail.com
push dateMon, 10 Feb 2020 21:16:13 +0000
reviewersbustage-fix
bugs1603074
Port bug 1603074 - Improve `synthesizePlainDragAndDrop()` in EventUtils.js. rs=bustage-fix
calendar/test/browser/browser_calendarList.js
--- a/calendar/test/browser/browser_calendarList.js
+++ b/calendar/test/browser/browser_calendarList.js
@@ -265,17 +265,17 @@ add_task(async () => {
   checkProperties(1, { disabled: true });
 
   calendars[1].setProperty("disabled", false);
   checkProperties(1, { disabled: false });
 
   // Test reordering calendars.
 
   let dragSession = Cc["@mozilla.org/widget/dragservice;1"].getService(Ci.nsIDragService);
-  dragSession.startDragSession();
+  dragSession.startDragSessionForTests(Ci.nsIDragService.DRAGDROP_ACTION_MOVE);
 
   EventUtils.synthesizeDragStart(calendarList.itemChildren[3], null, null, 2, 2);
   await new Promise(resolve => setTimeout(resolve));
 
   let [result, dataTransfer] = EventUtils.synthesizeDragOver(
     calendarList.itemChildren[3],
     calendarList.itemChildren[0],
     undefined,