[angular] WEB-29262 Add tests for nested forms support.

GitOrigin-RevId: 7945de26afc91a13143b8772f32608597d264e50
This commit is contained in:
Piotr Tomiak
2025-01-22 15:33:20 +00:00
committed by intellij-monorepo-bot
parent 82a928d40a
commit e4ca08fd41
2 changed files with 14 additions and 6 deletions
@@ -29,5 +29,6 @@
<orderEntry type="library" name="gson" level="project" />
<orderEntry type="module" module-name="intellij.platform.markdown.utils" />
<orderEntry type="module" module-name="intellij.platform.testFramework" scope="TEST" />
<orderEntry type="module" module-name="intellij.java.rt" scope="TEST" />
</component>
</module>
@@ -56,6 +56,7 @@ import com.intellij.webSymbols.query.WebSymbolMatch
import com.intellij.webSymbols.query.WebSymbolsQueryExecutorFactory
import junit.framework.TestCase.*
import org.junit.Assert
import org.opentest4j.AssertionFailedError
import java.io.File
import java.util.concurrent.Callable
import kotlin.math.max
@@ -141,12 +142,18 @@ fun CodeInsightTestFixture.checkLookupItems(
locations.forEachIndexed { index, location ->
moveToOffsetBySignature(location)
completeBasic()
checkListByFile(
renderLookupItems(renderPriority, renderTypeText, renderTailText, renderProximity, renderDisplayText, renderDisplayEffects,
lookupItemFilter),
expectedDataLocation + (if (hasDir) "/items" else "$fileName.items") + ".${index + 1}.txt",
containsCheck
)
try {
checkListByFile(
renderLookupItems(renderPriority, renderTypeText, renderTailText, renderProximity, renderDisplayText, renderDisplayEffects,
lookupItemFilter),
expectedDataLocation + (if (hasDir) "/items" else "$fileName.items") + ".${index + 1}.txt",
containsCheck
)
} catch (e: FileComparisonFailedError) {
throw FileComparisonFailedError(e.message + "\nFor location: $location",
e.expectedStringPresentation, e.actualStringPresentation,
e.filePath, e.actualFilePath)
}
checkLookupDocumentation(".${index + 1}")
}
}