diff options
Diffstat (limited to 'platform/platform-tests/testSrc/com/intellij/openapi/editor/actions/EditorActionTest.java')
-rw-r--r-- | platform/platform-tests/testSrc/com/intellij/openapi/editor/actions/EditorActionTest.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/platform/platform-tests/testSrc/com/intellij/openapi/editor/actions/EditorActionTest.java b/platform/platform-tests/testSrc/com/intellij/openapi/editor/actions/EditorActionTest.java index deb63c13abf8..20bfdaced5e8 100644 --- a/platform/platform-tests/testSrc/com/intellij/openapi/editor/actions/EditorActionTest.java +++ b/platform/platform-tests/testSrc/com/intellij/openapi/editor/actions/EditorActionTest.java @@ -102,4 +102,15 @@ public class EditorActionTest extends AbstractEditorTest { deleteLine(); checkResultByText(""); } + + public void testDeleteLineHonorSelection() throws Exception { + init("xxxx\n" + + "bla <selection><caret>bla\n" + + "bla</selection> bla\n" + + "yyy", + TestFileType.TEXT); + deleteLine(); + checkResultByText("xxxx\n" + + "yyy<caret>"); + } }
\ No newline at end of file |