summaryrefslogtreecommitdiff
path: root/platform/platform-tests/testSrc/com/intellij/codeInsight/actions/ReformatOnlyVcsChangedTextTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'platform/platform-tests/testSrc/com/intellij/codeInsight/actions/ReformatOnlyVcsChangedTextTest.java')
-rw-r--r--platform/platform-tests/testSrc/com/intellij/codeInsight/actions/ReformatOnlyVcsChangedTextTest.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/platform/platform-tests/testSrc/com/intellij/codeInsight/actions/ReformatOnlyVcsChangedTextTest.java b/platform/platform-tests/testSrc/com/intellij/codeInsight/actions/ReformatOnlyVcsChangedTextTest.java
index 476bd66ddde4..d66988ab2ef5 100644
--- a/platform/platform-tests/testSrc/com/intellij/codeInsight/actions/ReformatOnlyVcsChangedTextTest.java
+++ b/platform/platform-tests/testSrc/com/intellij/codeInsight/actions/ReformatOnlyVcsChangedTextTest.java
@@ -163,6 +163,28 @@ public class ReformatOnlyVcsChangedTextTest extends LightPlatformTestCase {
);
}
+ public void testModificationCRLF() throws IOException {
+ doTest(
+ "public class B {\r\n" +
+ " int a = 3;\r\n" +
+ " String text;\r\n" +
+ " Object last = null;\r\n" +
+ " Object first = null;\r\n" +
+ " Object second = null;\r\n" +
+ "}",
+
+ "public class B {\r\n" +
+ " int a = 33;\r\n" +
+ " String text;\r\n" +
+ " Object last = new Object();\r\n" +
+ " Object first = null;\r\n" +
+ " Object second = new Object();\r\n" +
+ "}",
+
+ line(1, 1), line(3,3), line(5,5)
+ );
+ }
+
public void testReformatFiles() throws IOException {
ChangedFilesStructure fs = new ChangedFilesStructure(myWorkingDirectory);