aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2017-02-27 16:59:03 +0300
committerSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2017-02-27 16:59:03 +0300
commit289d287993b4618f73ebcbc5056a5495238a5836 (patch)
tree17c282eab431e1969a4ef0917f9a52d75d0788bf /core
parent706d37bea00702795cb44f9378b2da743163e600 (diff)
downloaddokka-289d287993b4618f73ebcbc5056a5495238a5836.tar.gz
dokka-289d287993b4618f73ebcbc5056a5495238a5836.tar.bz2
dokka-289d287993b4618f73ebcbc5056a5495238a5836.zip
Fix test
Diffstat (limited to 'core')
-rw-r--r--core/src/test/kotlin/TestAPI.kt7
-rw-r--r--core/testdata/format/sinceKotlin.html24
2 files changed, 13 insertions, 18 deletions
diff --git a/core/src/test/kotlin/TestAPI.kt b/core/src/test/kotlin/TestAPI.kt
index 09a346cf..19eb29d5 100644
--- a/core/src/test/kotlin/TestAPI.kt
+++ b/core/src/test/kotlin/TestAPI.kt
@@ -162,12 +162,7 @@ fun verifyModelOutput(it: DocumentationModule,
val output = StringBuilder()
outputGenerator(it, output)
val ext = outputExtension.removePrefix(".")
- val expectedFileContent = File(sourcePath.replaceAfterLast(".", ext, sourcePath + "." + ext)).readText()
- val expectedOutput =
- if (ext.equals("html", true))
- expectedFileContent.lines().joinToString(separator = "\n", transform = String::trim)
- else
- expectedFileContent
+ val expectedOutput = File(sourcePath.replaceAfterLast(".", ext, sourcePath + "." + ext)).readText()
assertEqualsIgnoringSeparators(expectedOutput, output.toString())
}
diff --git a/core/testdata/format/sinceKotlin.html b/core/testdata/format/sinceKotlin.html
index eef5ca66..4788fcda 100644
--- a/core/testdata/format/sinceKotlin.html
+++ b/core/testdata/format/sinceKotlin.html
@@ -1,7 +1,7 @@
<HTML>
<HEAD>
- <meta charset="UTF-8">
- <title>Since1.1 - test</title>
+<meta charset="UTF-8">
+<title>Since1.1 - test</title>
</HEAD>
<BODY>
<a href="test/index">test</a>&nbsp;/&nbsp;<a href="test/-since1.1/index">Since1.1</a><br/>
@@ -12,16 +12,16 @@
<p>Useful</p>
<h3>Constructors</h3>
<table>
- <tbody>
- <tr>
- <td>
- <a href="test/-since1.1/-init-">&lt;init&gt;</a></td>
- <td>
- <code><span class="identifier">Since1.1</span><span class="symbol">(</span><span class="symbol">)</span></code>
- <p>Useful</p>
- </td>
- </tr>
- </tbody>
+<tbody>
+<tr>
+<td>
+<a href="test/-since1.1/-init-">&lt;init&gt;</a></td>
+<td>
+<code><span class="identifier">Since1.1</span><span class="symbol">(</span><span class="symbol">)</span></code>
+<p>Useful</p>
+</td>
+</tr>
+</tbody>
</table>
</BODY>
</HTML>