Mpp tests: allow to test java code in highlighting and quickfix tests
This commit is contained in:
committed by
Pavel V. Talanov
parent
0157d7bd5d
commit
9e493d8b73
+1
-1
@@ -22,7 +22,7 @@ import java.io.File
|
||||
abstract class AbstractMultiPlatformCompletionTest : AbstractMultiModuleTest() {
|
||||
protected fun doTest(testPath: String) {
|
||||
setupMppProjectFromDirStructure(File(testPath))
|
||||
val file = project.findFileWithCaret()
|
||||
val file = project.findFileWithCaret() as KtFile
|
||||
val doc = PsiDocumentManager.getInstance(myProject).getDocument(file)!!
|
||||
val offset = doc.extractMarkerOffset(project)
|
||||
val editor = EditorFactory.getInstance().createEditor(doc, myProject)!!
|
||||
|
||||
Reference in New Issue
Block a user