void () { initText("some <selection>t<caret>ext</selection>\n" + "another line"); mouse().alt().shift().clickAt(1, 1); // alt-shift-click in a 'free space' checkResultByText("some <selection>t<caret>ext</selection>\n" + "a<caret>nother line"); mouse().alt().shift().clickAt(0, 8); // alt-shift-click in existing selection checkResultByText("some <selection>t<caret>ext</selection>\n" + "a<caret>nother line"); mouse().alt().shift().clickAt(0, 6); // alt-shift-click at existing caret with selection checkResultByText("some text\n" + "a<caret>nother line"); mouse().alt().shift().clickAt(1, 1); // alt-shift-click at the sole caret checkResultByText("some text\n" + "a<caret>nother line"); mouse().alt().shift().clickAt(0, 30); // alt-shift-click in virtual space checkResultByText("some text<caret>\n" + "a<caret>nother line"); mouse().clickAt(0, 0); // plain mouse click checkResultByText("<caret>some text\n" + "another line"); }