Fix file structure tests in 182

This commit is contained in:
Nikolay Krasko
2018-08-02 21:30:05 +03:00
parent 8ccfdc70ac
commit be3f0628ef
@@ -76,8 +76,9 @@ abstract class KotlinFileStructureTestBase : KotlinLightCodeInsightFixtureTestCa
protected fun checkResult() {
val printInfo = Queryable.PrintInfo(arrayOf("text"), arrayOf("location"))
TreeUtil.expandAll(popupFixture.tree);
val popupText = StructureViewUtil.print(popupFixture.tree, false, printInfo, null).trim { it <= ' ' }
UsefulTestCase.assertSameLinesWithFile(testDataPath + "/" + treeFileName, popupText)
TreeUtil.expandAll(popupFixture.tree) {
val popupText = StructureViewUtil.print(popupFixture.tree, false, printInfo, null).trim { it <= ' ' }
UsefulTestCase.assertSameLinesWithFile(testDataPath + "/" + treeFileName, popupText)
}
}
}