void () { initText(""" one <selection>two\s three<caret></selection> four\s five <selection>six\s seven<caret></selection> eight"""); executeAction("EditorCut"); executeAction("EditorLineEnd"); executeAction("EditorPaste"); checkResultByText(""" one fourtwo\s three<caret>\s five eightsix\s seven<caret>"""); }