diff options
author | Paweł Marks <pmarks@virtuslab.com> | 2020-03-31 15:40:51 +0200 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-03-31 16:02:09 +0200 |
commit | fcb34233124fd3c206e45fdc78699e34417de585 (patch) | |
tree | 160560da4297d11a29539d5ab5863f61c2cc4f7c | |
parent | 05dcb36c2f46bda9a34a8cd4df8bbfd4d188c952 (diff) | |
download | dokka-fcb34233124fd3c206e45fdc78699e34417de585.tar.gz dokka-fcb34233124fd3c206e45fdc78699e34417de585.tar.bz2 dokka-fcb34233124fd3c206e45fdc78699e34417de585.zip |
Update tests to take into account new wrapping
-rw-r--r-- | plugins/base/src/test/kotlin/content/params/ContentForParamsTest.kt | 60 |
1 files changed, 40 insertions, 20 deletions
diff --git a/plugins/base/src/test/kotlin/content/params/ContentForParamsTest.kt b/plugins/base/src/test/kotlin/content/params/ContentForParamsTest.kt index 6b86d727..4a6b5264 100644 --- a/plugins/base/src/test/kotlin/content/params/ContentForParamsTest.kt +++ b/plugins/base/src/test/kotlin/content/params/ContentForParamsTest.kt @@ -36,8 +36,10 @@ class ContentForParamsTest : AbstractCoreTest() { val page = module.children.single { it.name == "test" } .children.single { it.name == "function" } as ContentPage page.content.assertNode { - header(1) { +"function" } - signature("function", null, "abc" to "String") + group { + header(1) { +"function" } + signature("function", null, "abc" to "String") + } } } } @@ -61,8 +63,10 @@ class ContentForParamsTest : AbstractCoreTest() { val page = module.children.single { it.name == "test" } .children.single { it.name == "function" } as ContentPage page.content.assertNode { - header(1) { +"function" } - signature("function", null, "abc" to "String") + group { + header(1) { +"function" } + signature("function", null, "abc" to "String") + } header(3) { +"Description" } platformHinted { pWrapped("comment to function") @@ -91,8 +95,10 @@ class ContentForParamsTest : AbstractCoreTest() { val page = module.children.single { it.name == "test" } .children.single { it.name == "function" } as ContentPage page.content.assertNode { - header(1) { +"function" } - signature("function", null, "abc" to "String") + group { + header(1) { +"function" } + signature("function", null, "abc" to "String") + } header(3) { +"Description" } platformHinted { unnamedTag("Author") { +"Kordyjan" } @@ -123,8 +129,10 @@ class ContentForParamsTest : AbstractCoreTest() { val page = module.children.single { it.name == "test" } .children.single { it.name == "function" } as ContentPage page.content.assertNode { - header(1) { +"function" } - signature("function", null, "abc" to "String") + group { + header(1) { +"function" } + signature("function", null, "abc" to "String") + } header(3) { +"Description" } platformHinted { pWrapped("comment to function") @@ -155,8 +163,10 @@ class ContentForParamsTest : AbstractCoreTest() { val page = module.children.single { it.name == "test" } .children.single { it.name == "function" } as ContentPage page.content.assertNode { - header(1) { +"function" } - signature("function", null, "abc" to "String") + group { + header(1) { +"function" } + signature("function", null, "abc" to "String") + } header(3) { +"Description" } platformHinted { pWrapped("comment to function") @@ -194,8 +204,10 @@ class ContentForParamsTest : AbstractCoreTest() { val page = module.children.single { it.name == "test" } .children.single { it.name == "function" } as ContentPage page.content.assertNode { - header(1) { +"function" } - signature("function", null, "first" to "String", "second" to "Int", "third" to "Double") + group { + header(1) { +"function" } + signature("function", null, "first" to "String", "second" to "Int", "third" to "Double") + } header(3) { +"Description" } platformHinted { pWrapped("comment to function") @@ -240,8 +252,10 @@ class ContentForParamsTest : AbstractCoreTest() { val page = module.children.single { it.name == "test" } .children.single { it.name == "function" } as ContentPage page.content.assertNode { - header(1) { +"function" } - signature("function", null, "first" to "String", "second" to "Int", "third" to "Double") + group { + header(1) { +"function" } + signature("function", null, "first" to "String", "second" to "Int", "third" to "Double") + } header(3) { +"Description" } platformHinted { header(4) { +"Parameters" } @@ -285,8 +299,10 @@ class ContentForParamsTest : AbstractCoreTest() { val page = module.children.single { it.name == "test" } .children.single { it.name == "function" } as ContentPage page.content.assertNode { - header(1) { +"function" } - signatureWithReceiver("String", "function", null, "abc" to "String") + group { + header(1) { +"function" } + signatureWithReceiver("String", "function", null, "abc" to "String") + } header(3) { +"Description" } platformHinted { pWrapped("comment to function") @@ -327,8 +343,10 @@ class ContentForParamsTest : AbstractCoreTest() { val page = module.children.single { it.name == "test" } .children.single { it.name == "function" } as ContentPage page.content.assertNode { - header(1) { +"function" } - signature("function", null, "first" to "String", "second" to "Int", "third" to "Double") + group { + header(1) { +"function" } + signature("function", null, "first" to "String", "second" to "Int", "third" to "Double") + } header(3) { +"Description" } platformHinted { pWrapped("comment to function") @@ -372,8 +390,10 @@ class ContentForParamsTest : AbstractCoreTest() { val page = module.children.single { it.name == "test" } .children.single { it.name == "function" } as ContentPage page.content.assertNode { - header(1) { +"function" } - signature("function", null, "first" to "String", "second" to "Int", "third" to "Double") + group { + header(1) { +"function" } + signature("function", null, "first" to "String", "second" to "Int", "third" to "Double") + } header(3) { +"Description" } platformHinted { pWrapped("comment to function") |