diff options
Diffstat (limited to 'integration-tests/src')
-rw-r--r-- | integration-tests/src/main/kotlin/org/jetbrains/dokka/it/AbstractIntegrationTest.kt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/integration-tests/src/main/kotlin/org/jetbrains/dokka/it/AbstractIntegrationTest.kt b/integration-tests/src/main/kotlin/org/jetbrains/dokka/it/AbstractIntegrationTest.kt index 04ae4a88..2a01993e 100644 --- a/integration-tests/src/main/kotlin/org/jetbrains/dokka/it/AbstractIntegrationTest.kt +++ b/integration-tests/src/main/kotlin/org/jetbrains/dokka/it/AbstractIntegrationTest.kt @@ -90,4 +90,12 @@ abstract class AbstractIntegrationTest { "Unexpected `§SUPPRESSED§` in file ${file.path}" ) } + + protected fun assertNoEmptySpans(file: File) { + val fileText = file.readText() + assertFalse( + fileText.contains(Regex("""<span>\s*</span>""")), + "Unexpected empty <span></span> in file ${file.path}" + ) + } } |