Skip to content

Commit fb1b4f5

Browse files
committed
Adding tests to verify completion behavior for imports.hx (#1230)
1 parent 33f951a commit fb1b4f5

File tree

4 files changed

+19
-0
lines changed

4 files changed

+19
-0
lines changed

src/test/java/com/intellij/plugins/haxe/lang/completion/ReferenceCompletionTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,12 @@ public void testImportGenericSubType() throws Throwable {
348348
doTestVariantsInner("ImportGenericSubType.txt");
349349
}
350350

351+
@Test
352+
public void testImportHxFile() throws Throwable {
353+
myFixture.configureByFiles("ImportHxFile.hx", "Import.hx", "com/util/MathUtil.hx");
354+
doTestVariantsInner("ImportHxFile.txt");
355+
}
356+
351357
@Test
352358
public void testNullTypedef() throws Throwable {
353359
myFixture.configureByFiles("NullTypedef.hx", "std/StdTypes.hx", "std/String.hx");
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import com.util.MathUtil;
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package ;
2+
class usingImportHxFile {
3+
function foo(){
4+
MathUtil.<caret>;
5+
}
6+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
BASIC 1 INCLUDES
2+
abs
3+
abs2
4+
AbsHelper
5+
abs(n:Int):Int
6+
abs2(n:Int):Int

0 commit comments

Comments
 (0)