Bug 1335880 - Adjust mouse position for dragstart. r=masayuki
authorMakoto Kato <m_kato@ga2.so-net.ne.jp>
Mon, 08 May 2017 14:06:29 +0900
changeset 357171 e83b09115327ea8c19a8d435f430e0ec0e11f404
parent 357170 b0c35be45a410f087606422b977dd2bbd2c94555
child 357172 3e50d4b2068314ddae37e1a95ea5c304729c4412
push id31783
push usercbook@mozilla.com
push dateTue, 09 May 2017 12:03:48 +0000
treeherdermozilla-central@b0ff0c5c0a35 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmasayuki
bugs1335880
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1335880 - Adjust mouse position for dragstart. r=masayuki On Ubuntu 16.04 TLS, test_dragdrop.html due to control margin. So we should adjust the point of dragstart. MozReview-Commit-ID: EPW2UnaIWRt
editor/libeditor/tests/test_dragdrop.html
--- a/editor/libeditor/tests/test_dragdrop.html
+++ b/editor/libeditor/tests/test_dragdrop.html
@@ -43,17 +43,17 @@ function doTest()
   // -------- Test dragging regular text
   selection.selectAllChildren(text);
   var result = synthesizeDragStart(text, [[htmlContextData, htmlInfoData, htmlData,
                                            {type: "text/plain", data: "Some Text"}]], window, 40, 10);
   is(result, null, "Test dragging regular text");
 
   // -------- Test dragging text from an <input>
   input.setSelectionRange(1, 4);
-  result = synthesizeDragStart(input, [[{type: "text/plain", data: "rag"}]], window, 25, 6);
+  result = synthesizeDragStart(input, [[{type: "text/plain", data: "rag"}]], window, 25, 8);
   is(result, null, "Test dragging input");
 
   // -------- Test dragging text from a <textarea>
   textarea.setSelectionRange(1, 7);
   result = synthesizeDragStart(textarea, [[{type: "text/plain", data: "ome Te"}]], window, 25, 6);
   is(result, null, "Test dragging textarea");
   textarea.blur();