mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[angular] WEB-29262 Add tests for nested forms support.
GitOrigin-RevId: 7945de26afc91a13143b8772f32608597d264e50
This commit is contained in:
committed by
intellij-monorepo-bot
parent
82a928d40a
commit
e4ca08fd41
@@ -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}")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user