From 289d287993b4618f73ebcbc5056a5495238a5836 Mon Sep 17 00:00:00 2001 From: Simon Ogorodnik Date: Mon, 27 Feb 2017 16:59:03 +0300 Subject: Fix test --- core/src/test/kotlin/TestAPI.kt | 7 +------ core/testdata/format/sinceKotlin.html | 24 ++++++++++++------------ 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 @@ - - Since1.1 - test + +Since1.1 - test test / Since1.1
@@ -12,16 +12,16 @@

Useful

Constructors

- - - - - - + + + + + +
- <init> - Since1.1() -

Useful

-
+<init> +Since1.1() +

Useful

+
-- cgit