aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/test/kotlin/renderers/html/PlatformDependentHintTest.kt
diff options
context:
space:
mode:
authorAndrzej Ratajczak <andrzej.ratajczak98@gmail.com>2020-04-07 16:49:56 +0200
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-04-22 13:10:48 +0200
commit089113e352ecd49216602bb1a02fbfada6a40788 (patch)
treed406cc2e7dcb8f575d75320089b55bc2006d2791 /plugins/base/src/test/kotlin/renderers/html/PlatformDependentHintTest.kt
parent720c50fb7f4bf4ae4b4d4c406cfb958a7fba8ffb (diff)
downloaddokka-089113e352ecd49216602bb1a02fbfada6a40788.tar.gz
dokka-089113e352ecd49216602bb1a02fbfada6a40788.tar.bz2
dokka-089113e352ecd49216602bb1a02fbfada6a40788.zip
Fixes tests
Diffstat (limited to 'plugins/base/src/test/kotlin/renderers/html/PlatformDependentHintTest.kt')
-rw-r--r--plugins/base/src/test/kotlin/renderers/html/PlatformDependentHintTest.kt8
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/base/src/test/kotlin/renderers/html/PlatformDependentHintTest.kt b/plugins/base/src/test/kotlin/renderers/html/PlatformDependentHintTest.kt
index cf1ac0a9..3e603955 100644
--- a/plugins/base/src/test/kotlin/renderers/html/PlatformDependentHintTest.kt
+++ b/plugins/base/src/test/kotlin/renderers/html/PlatformDependentHintTest.kt
@@ -1,5 +1,6 @@
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
@@ -99,7 +100,12 @@ class PlatformDependentHintTest : RenderingOnlyTestBase() {
}
}
- HtmlRenderer(context).render(page)
+ runBlocking {
+ val scope = this
+ with(HtmlRenderer(context)) {
+ scope.render(page)
+ }
+ }
println(renderedContent)
renderedContent.match(Div(Div("ab")))
}