From 224ab75fc54a05db8dae1abda4109dea05f09472 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Fri, 13 May 2022 18:38:40 +0200 Subject: [PATCH] Move FilePathClassNameCompletionTest to java-tests module GitOrigin-RevId: f826253ea78093ff656ac60fb674009e56cce982 --- .../completion/filePath2/src1/Test.java | 3 + .../filePath2/src1/i/i2/717_image.png | Bin 0 -> 587 bytes .../completion/filePath2/src1_after/Test.java | 3 + .../filePath2/src1_after/UnblockDocument.java | 3 + .../filePath2/src3/TestWrongCase.java | 3 + .../filePath2/src3_after/TestWrongCase.java | 3 + .../FilePathClassNameCompletionTest.java | 73 ++++++++++++++++++ 7 files changed, 88 insertions(+) create mode 100644 java/java-tests/testData/codeInsight/completion/filePath2/src1/Test.java create mode 100644 java/java-tests/testData/codeInsight/completion/filePath2/src1/i/i2/717_image.png create mode 100644 java/java-tests/testData/codeInsight/completion/filePath2/src1_after/Test.java create mode 100644 java/java-tests/testData/codeInsight/completion/filePath2/src1_after/UnblockDocument.java create mode 100644 java/java-tests/testData/codeInsight/completion/filePath2/src3/TestWrongCase.java create mode 100644 java/java-tests/testData/codeInsight/completion/filePath2/src3_after/TestWrongCase.java create mode 100644 java/java-tests/testSrc/com/intellij/codeInsight/completion/FilePathClassNameCompletionTest.java diff --git a/java/java-tests/testData/codeInsight/completion/filePath2/src1/Test.java b/java/java-tests/testData/codeInsight/completion/filePath2/src1/Test.java new file mode 100644 index 000000000000..5a81c2d72b53 --- /dev/null +++ b/java/java-tests/testData/codeInsight/completion/filePath2/src1/Test.java @@ -0,0 +1,3 @@ +public class Test { + public static final String TEST = "71x"; +} \ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/completion/filePath2/src1/i/i2/717_image.png b/java/java-tests/testData/codeInsight/completion/filePath2/src1/i/i2/717_image.png new file mode 100644 index 0000000000000000000000000000000000000000..7718bc51bc12d87f5eeea3032f6b1cca338561c2 GIT binary patch literal 587 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GXl482JKxLR|m<{~zFC=iz1->}hRb zZ=V?qBCAq@fQ$$q>)-${Ge>tTCpRB&&mcd~Fn}#&v@=8Wl6`biyfv$9i?d@K zBYOKP;Gq?|J8}cH>O$se|vCu4d4HZIh!l_ zw^Z@3&FBCB;pG31=U&g|Tb#_l_Rq!NzyLBU3GxeO&^EQOvaxk^bZYCEIC`Ahrp;Tn?KyPp%*BhBu3Wu)|KY<&j~+jM^5n_$=P%xT`0#O0Jl8s)3EMnf977}| zSr4*0F*!0Y956hecSvsock*`&FV{DD|Njf70~IaPnrg#Pd-`O+v|hF7*aHW=tgd@( zK6dDJoq2@s{mWs$YGsoxm`>*0`nltGRd=Fhg(#$#s)it z#iZYU*brv_lC_F&a;JdW\"}"); + complete(); + + myFixture.checkResult("class FooBar { String barName = \"foo.txt\"}"); + } + + private LookupElement[] complete() { + return myFixture.complete(CompletionType.BASIC, 2); + } + + public void testUnblockDocument() { + myFixture.addFileToProject("i/i2/717_image.png", ""); + myFixture.configureByFile("src1/Test.java"); + complete(); + + myFixture.type("7_image.png "); + + checkResultByFile("src1_after/UnblockDocument.java"); + } +} \ No newline at end of file