Fix path replacement in reference tests

The commit fixes ReferenceResolveInJavaTestGenerated$BinaryAndSource.testFileFacade.
This commit is contained in:
Nikolay Krasko
2016-04-29 15:24:57 +03:00
parent e2ae2f313c
commit 31043f43e3
@@ -151,7 +151,7 @@ abstract class AbstractReferenceResolveTest : KotlinLightPlatformCodeInsightFixt
private fun replacePlaceholders(actualString: String): String {
val replaced = PathUtil.toSystemIndependentName(actualString)
.replace(PluginTestCaseBase.getTestDataPathBase(), "/<test dir>")
.replace(PluginTestCaseBase.TEST_DATA_PROJECT_RELATIVE, "/<test dir>")
.replace("//", "/") // additional slashes to fix discrepancy between windows and unix
if ("!/" in replaced) {
return replaced.replace(replaced.substringBefore("!/"), "<jar>")