void () { initText("abcdef"); EditorTestUtil.setEditorVisibleSize(getEditor(), 100, 100); getEditor().getSettings().setDndEnabled(false); EditorMouseFixture mouse = mouse(); mouse.pressAt(0, 0).dragTo(0, 3).release(); checkResultByText("<selection>abc<caret></selection>def"); mouse.pressAt(0, 1); checkResultByText("a<caret>bcdef"); mouse.dragTo(0, 4); checkResultByText("a<selection>bcd<caret></selection>ef"); mouse.release(); checkResultByText("a<selection>bcd<caret></selection>ef"); }