aboutsummaryrefslogtreecommitdiff
path: root/core/src/test/kotlin
diff options
context:
space:
mode:
authorSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2017-12-15 01:00:32 +0300
committerSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2017-12-15 01:00:32 +0300
commitdbd4774ffae19ff4d52cd21c7cb3906cdc3e0b5c (patch)
tree82513ef99e9c20db5fa9a1e386d43aece95d286f /core/src/test/kotlin
parent2de8d15435c1e779a1f97c48330acf5fc9c38670 (diff)
downloaddokka-dbd4774ffae19ff4d52cd21c7cb3906cdc3e0b5c.tar.gz
dokka-dbd4774ffae19ff4d52cd21c7cb3906cdc3e0b5c.tar.bz2
dokka-dbd4774ffae19ff4d52cd21c7cb3906cdc3e0b5c.zip
Normalize file path's when using as URI
Diffstat (limited to 'core/src/test/kotlin')
-rw-r--r--core/src/test/kotlin/format/FileGeneratorTestCase.kt7
1 files changed, 2 insertions, 5 deletions
diff --git a/core/src/test/kotlin/format/FileGeneratorTestCase.kt b/core/src/test/kotlin/format/FileGeneratorTestCase.kt
index 644d5baa..948426ea 100644
--- a/core/src/test/kotlin/format/FileGeneratorTestCase.kt
+++ b/core/src/test/kotlin/format/FileGeneratorTestCase.kt
@@ -1,9 +1,6 @@
package org.jetbrains.dokka.tests
-import org.jetbrains.dokka.DocumentationNode
-import org.jetbrains.dokka.FileGenerator
-import org.jetbrains.dokka.FormatService
-import org.jetbrains.dokka.relativeToRoot
+import org.jetbrains.dokka.*
import org.junit.Before
import org.junit.Rule
import org.junit.rules.TemporaryFolder
@@ -30,7 +27,7 @@ abstract class FileGeneratorTestCase {
if (sb.isNotBlank() && !sb.endsWith('\n')) {
sb.appendln()
}
- sb.appendln("<!-- File: ${relativeToRoot(loc)} -->")
+ sb.appendln("<!-- File: ${relativeToRoot(loc).toUnixString()} -->")
}
sb.append(loc.file.readText())
}