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
--- 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();