diff options
Diffstat (limited to 'plugins/base/src/test/kotlin')
-rw-r--r-- | plugins/base/src/test/kotlin/renderers/html/GroupWrappingTest.kt | 30 | ||||
-rw-r--r-- | plugins/base/src/test/kotlin/renderers/html/PlatformDependentHintTest.kt | 8 |
2 files changed, 5 insertions, 33 deletions
diff --git a/plugins/base/src/test/kotlin/renderers/html/GroupWrappingTest.kt b/plugins/base/src/test/kotlin/renderers/html/GroupWrappingTest.kt index da89a352..43eccae6 100644 --- a/plugins/base/src/test/kotlin/renderers/html/GroupWrappingTest.kt +++ b/plugins/base/src/test/kotlin/renderers/html/GroupWrappingTest.kt @@ -1,9 +1,7 @@ package renderers.html -import kotlinx.coroutines.runBlocking import org.jetbrains.dokka.base.renderers.html.HtmlRenderer import org.jetbrains.dokka.pages.TextStyle -import org.jsoup.Jsoup import org.junit.jupiter.api.Test import renderers.* @@ -19,12 +17,7 @@ class GroupWrappingTest: RenderingOnlyTestBase() { text("c") } - runBlocking { - val scope = this - with(HtmlRenderer(context)) { - scope.render(page) - } - } + HtmlRenderer(context).render(page) renderedContent.match("abc") } @@ -39,12 +32,7 @@ class GroupWrappingTest: RenderingOnlyTestBase() { text("c") } - runBlocking { - val scope = this - with(HtmlRenderer(context)) { - scope.render(page) - } - } + HtmlRenderer(context).render(page) renderedContent.match(P("ab"), "c") } @@ -59,12 +47,7 @@ class GroupWrappingTest: RenderingOnlyTestBase() { text("c") } - runBlocking { - val scope = this - with(HtmlRenderer(context)) { - scope.render(page) - } - } + HtmlRenderer(context).render(page) renderedContent.match(Div("ab"), "c") } @@ -84,12 +67,7 @@ class GroupWrappingTest: RenderingOnlyTestBase() { } } - runBlocking { - val scope = this - with(HtmlRenderer(context)) { - scope.render(page) - } - } + HtmlRenderer(context).render(page) renderedContent.match(Div("a", Div(Div("bc")), "d")) } diff --git a/plugins/base/src/test/kotlin/renderers/html/PlatformDependentHintTest.kt b/plugins/base/src/test/kotlin/renderers/html/PlatformDependentHintTest.kt index 3e603955..cf1ac0a9 100644 --- a/plugins/base/src/test/kotlin/renderers/html/PlatformDependentHintTest.kt +++ b/plugins/base/src/test/kotlin/renderers/html/PlatformDependentHintTest.kt @@ -1,6 +1,5 @@ package renderers.html -import kotlinx.coroutines.runBlocking import org.jetbrains.dokka.Platform import org.jetbrains.dokka.base.renderers.html.HtmlRenderer import org.jetbrains.dokka.pages.PlatformData @@ -100,12 +99,7 @@ class PlatformDependentHintTest : RenderingOnlyTestBase() { } } - runBlocking { - val scope = this - with(HtmlRenderer(context)) { - scope.render(page) - } - } + HtmlRenderer(context).render(page) println(renderedContent) renderedContent.match(Div(Div("ab"))) } |