Add SKIP_JAVAC in tests where behaviour has diverged with IDEA resolve
See a71f09022c
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
// SKIP_JAVAC
|
||||||
// FILE: b.kt
|
// FILE: b.kt
|
||||||
package b
|
package b
|
||||||
|
|
||||||
|
|||||||
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// SKIP_JAVAC
|
||||||
// FILE: a/B.java
|
// FILE: a/B.java
|
||||||
package a;
|
package a;
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// SKIP_JAVAC
|
||||||
// FILE: a/A.java
|
// FILE: a/A.java
|
||||||
package a;
|
package a;
|
||||||
|
|
||||||
|
|||||||
+3
@@ -131,6 +131,9 @@ public abstract class KotlinMultiFileTestWithJava<M, F> extends KtUsefulTestCase
|
|||||||
protected void doTest(String filePath) throws Exception {
|
protected void doTest(String filePath) throws Exception {
|
||||||
File file = new File(filePath);
|
File file = new File(filePath);
|
||||||
String expectedText = KotlinTestUtils.doLoadFile(file);
|
String expectedText = KotlinTestUtils.doLoadFile(file);
|
||||||
|
|
||||||
|
if (InTextDirectivesUtils.isDirectiveDefined(expectedText, "// SKIP_JAVAC")) return;
|
||||||
|
|
||||||
Map<String, ModuleAndDependencies> modules = new HashMap<>();
|
Map<String, ModuleAndDependencies> modules = new HashMap<>();
|
||||||
List<F> testFiles = createTestFiles(file, expectedText, modules);
|
List<F> testFiles = createTestFiles(file, expectedText, modules);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user