diff options
author | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2017-12-15 01:00:32 +0300 |
---|---|---|
committer | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2017-12-15 01:00:32 +0300 |
commit | dbd4774ffae19ff4d52cd21c7cb3906cdc3e0b5c (patch) | |
tree | 82513ef99e9c20db5fa9a1e386d43aece95d286f /core/src/test/kotlin/format | |
parent | 2de8d15435c1e779a1f97c48330acf5fc9c38670 (diff) | |
download | dokka-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/format')
-rw-r--r-- | core/src/test/kotlin/format/FileGeneratorTestCase.kt | 7 |
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()) } |