From a91570210d078c84b60d9eb0245d6a29f302f2c6 Mon Sep 17 00:00:00 2001 From: KrystianUjma Date: Mon, 10 Jun 2019 18:21:32 +0200 Subject: fix kotlin website html tests --- core/testdata/format/website-html/dropImport.html | 8 ++++++-- .../testdata/format/website-html/newLinesInImportList.html | 8 ++++++-- core/testdata/format/website-html/newLinesInSamples.html | 8 ++++++-- core/testdata/format/website-html/overloadGroup.html | 12 +++++++++--- core/testdata/format/website-html/returnTag.html | 6 +++++- core/testdata/format/website-html/sample.html | 14 ++++++++++---- core/testdata/format/website-html/sampleWithAsserts.html | 8 ++++++-- 7 files changed, 48 insertions(+), 16 deletions(-) (limited to 'core/testdata') diff --git a/core/testdata/format/website-html/dropImport.html b/core/testdata/format/website-html/dropImport.html index e0fcb12b..b6748a5c 100644 --- a/core/testdata/format/website-html/dropImport.html +++ b/core/testdata/format/website-html/dropImport.html @@ -1,11 +1,15 @@ -
test / foo
+
test / foo

foo

+
+
+
fun foo(): Unit
-
import some.*
+
import some.*
 
 fun main(args: Array<String>) {
 //sampleStart
 
 //sampleEnd
 }
+
diff --git a/core/testdata/format/website-html/newLinesInImportList.html b/core/testdata/format/website-html/newLinesInImportList.html index b5a07325..712b6a4b 100644 --- a/core/testdata/format/website-html/newLinesInImportList.html +++ b/core/testdata/format/website-html/newLinesInImportList.html @@ -1,8 +1,11 @@ - +

foo

+
+
+
fun foo(): Unit
-
import same.*
+
import same.*
 import some.*
 
 fun main(args: Array<String>) {
@@ -10,3 +13,4 @@ fun main(args: Array<String>) {
 
 //sampleEnd
 }
+
diff --git a/core/testdata/format/website-html/newLinesInSamples.html b/core/testdata/format/website-html/newLinesInSamples.html index 50f875da..7e379c68 100644 --- a/core/testdata/format/website-html/newLinesInSamples.html +++ b/core/testdata/format/website-html/newLinesInSamples.html @@ -1,8 +1,11 @@ - +

foo

+
+
+
fun foo(): Unit
-

+

 
 fun main(args: Array<String>) {
 //sampleStart
@@ -17,3 +20,4 @@ val mutableByLength: MutableMap<Int, MutableList<String>> = words.gr
 println("mutableByLength == byLength is ${mutableByLength == byLength}") // true
 //sampleEnd
 }
+
diff --git a/core/testdata/format/website-html/overloadGroup.html b/core/testdata/format/website-html/overloadGroup.html index aaba9c96..808cd606 100644 --- a/core/testdata/format/website-html/overloadGroup.html +++ b/core/testdata/format/website-html/overloadGroup.html @@ -1,13 +1,19 @@ - +

magic

-
+
+
+
+
fun magic(spell: String): Int

Parameters

spell - The text of spell, often distributed on scrolls

Return Spell ID for future casts

-
+
+
+
+
fun magic(spell: Int): Int

Parameters

diff --git a/core/testdata/format/website-html/returnTag.html b/core/testdata/format/website-html/returnTag.html index 7724eaa7..2e761527 100644 --- a/core/testdata/format/website-html/returnTag.html +++ b/core/testdata/format/website-html/returnTag.html @@ -1,5 +1,8 @@ -

+

indexOf

+
+
+
fun Foo.indexOf(
    char: Char,
    startIndex: Int = 0,
    ignoreCase: Boolean = false
): Int

Returns the index within this string of the first occurrence of the specified character, starting from the specified startIndex.

@@ -7,3 +10,4 @@

ignoreCase - true to ignore character case when matching a character. By default false.

Returns An index of the first occurrence of char or -1 if none is found.

+
diff --git a/core/testdata/format/website-html/sample.html b/core/testdata/format/website-html/sample.html index 1fb26e41..479af45c 100644 --- a/core/testdata/format/website-html/sample.html +++ b/core/testdata/format/website-html/sample.html @@ -1,10 +1,13 @@ - +

foo

-
+
+
+
+
fun foo(): Int

Groups elements of the original sequence by the key returned by the given keySelector function applied to each element and returns a map where each group key is associated with a list of corresponding elements.

-

+

 
 fun main(args: Array<String>) {
 //sampleStart
@@ -14,6 +17,9 @@ if (true) {
 //sampleEnd
 }
-
+
+
+
+
fun foo(i: Int): Int
diff --git a/core/testdata/format/website-html/sampleWithAsserts.html b/core/testdata/format/website-html/sampleWithAsserts.html index 2b2a9ac5..3febe91e 100644 --- a/core/testdata/format/website-html/sampleWithAsserts.html +++ b/core/testdata/format/website-html/sampleWithAsserts.html @@ -1,8 +1,11 @@ - +

a

+
+
+
fun a(): String
-
import java.io.FileNotFoundException
+
import java.io.FileNotFoundException
 import java.io.File
 
 fun main(args: Array<String>) {
@@ -22,3 +25,4 @@ fun indented() {
 }
 //sampleEnd
 }
+
-- cgit