void () { initText(""" <caret>line long line very long line long line line"""); setEditorVisibleSize(1000, 1000); EditorMouseFixture mouse = mouse(); mouse.alt().pressAt(1, 6); checkResultByText(""" line long l<caret>ine very long line long line line"""); mouse.dragTo(4, 6); // still holding Alt checkResultByText(""" line long l<caret>ine very l<caret>ong line long l<caret>ine line<caret>"""); mouse.dragTo(4, 8); // still holding Alt checkResultByText(""" line long l<selection>in<caret></selection>e very l<selection>on<caret></selection>g line long l<selection>in<caret></selection>e line"""); mouse.dragTo(4, 10).release(); // still holding Alt checkResultByText(""" line long l<selection>ine<caret></selection> very l<selection>ong <caret></selection>line long l<selection>ine<caret></selection> line"""); }