diff options
author | Marcin Aman <marcin.aman@gmail.com> | 2020-10-01 09:59:52 +0200 |
---|---|---|
committer | Kamil Doległo <9080183+kamildoleglo@users.noreply.github.com> | 2020-10-01 12:06:21 +0200 |
commit | fbee5a49ee4c21bf0f31362bf1f9af46adba7a44 (patch) | |
tree | b12c6671d39445fcf1b4389e8a5d59a5973d1095 /integration-tests/gradle/src/integrationTest/kotlin | |
parent | 407105fbc9ecd455e675740e444a57917ab3a5d0 (diff) | |
download | dokka-fbee5a49ee4c21bf0f31362bf1f9af46adba7a44.tar.gz dokka-fbee5a49ee4c21bf0f31362bf1f9af46adba7a44.tar.bz2 dokka-fbee5a49ee4c21bf0f31362bf1f9af46adba7a44.zip |
Escape urls in anchors
Diffstat (limited to 'integration-tests/gradle/src/integrationTest/kotlin')
-rw-r--r-- | integration-tests/gradle/src/integrationTest/kotlin/org/jetbrains/dokka/it/gradle/BasicGradleIntegrationTest.kt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/integration-tests/gradle/src/integrationTest/kotlin/org/jetbrains/dokka/it/gradle/BasicGradleIntegrationTest.kt b/integration-tests/gradle/src/integrationTest/kotlin/org/jetbrains/dokka/it/gradle/BasicGradleIntegrationTest.kt index 562a224e..63238907 100644 --- a/integration-tests/gradle/src/integrationTest/kotlin/org/jetbrains/dokka/it/gradle/BasicGradleIntegrationTest.kt +++ b/integration-tests/gradle/src/integrationTest/kotlin/org/jetbrains/dokka/it/gradle/BasicGradleIntegrationTest.kt @@ -104,6 +104,14 @@ class BasicGradleIntegrationTest(override val versions: BuildVersions) : Abstrac }, "Expected `SampleJavaClass` source link to GitHub" ) + + val anchorsShouldNotHaveHashes = "data-name=\".*#.*\"".toRegex() + assertTrue( + allHtmlFiles().all { file -> + !anchorsShouldNotHaveHashes.containsMatchIn(file.readText()) + }, + "Anchors should not have hashes inside" + ) } private fun File.assertJavadocOutputDir() { |