aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/test/kotlin/renderers
diff options
context:
space:
mode:
authorMarcin Aman <maman@virtuslab.com>2020-09-03 10:24:44 +0200
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-09-07 08:07:10 +0200
commit495c64c64db5d7ebc44a7262e5bdeb7cc3a54f9c (patch)
tree41cad978990b52f84906e1effb87d472ce2c784c /plugins/base/src/test/kotlin/renderers
parent581d064dc1fba01fd27f560e158df48498c7e776 (diff)
downloaddokka-495c64c64db5d7ebc44a7262e5bdeb7cc3a54f9c.tar.gz
dokka-495c64c64db5d7ebc44a7262e5bdeb7cc3a54f9c.tar.bz2
dokka-495c64c64db5d7ebc44a7262e5bdeb7cc3a54f9c.zip
Test images in GFM
Diffstat (limited to 'plugins/base/src/test/kotlin/renderers')
-rw-r--r--plugins/base/src/test/kotlin/renderers/html/DivergentTest.kt22
-rw-r--r--plugins/base/src/test/kotlin/renderers/html/GroupWrappingTest.kt8
-rw-r--r--plugins/base/src/test/kotlin/renderers/html/SourceSetDependentHintTest.kt16
3 files changed, 23 insertions, 23 deletions
diff --git a/plugins/base/src/test/kotlin/renderers/html/DivergentTest.kt b/plugins/base/src/test/kotlin/renderers/html/DivergentTest.kt
index b4de5aed..ad0d421e 100644
--- a/plugins/base/src/test/kotlin/renderers/html/DivergentTest.kt
+++ b/plugins/base/src/test/kotlin/renderers/html/DivergentTest.kt
@@ -4,7 +4,7 @@ import org.jetbrains.dokka.base.renderers.html.HtmlRenderer
import org.jetbrains.dokka.links.DRI
import org.jetbrains.dokka.pages.ContentDivergentGroup
import org.junit.jupiter.api.Test
-import renderers.TestPage
+import renderers.testPage
import utils.Div
import utils.Span
import utils.match
@@ -13,7 +13,7 @@ class DivergentTest : HtmlRenderingOnlyTestBase() {
@Test
fun simpleWrappingCase() {
- val page = TestPage {
+ val page = testPage {
divergentGroup(ContentDivergentGroup.GroupID("test")) {
instance(setOf(DRI("test", "Test")), setOf(js)) {
divergent {
@@ -28,7 +28,7 @@ class DivergentTest : HtmlRenderingOnlyTestBase() {
@Test
fun noPlatformHintCase() {
- val page = TestPage {
+ val page = testPage {
divergentGroup(ContentDivergentGroup.GroupID("test"), implicitlySourceSetHinted = false) {
instance(setOf(DRI("test", "Test")), setOf(js)) {
divergent {
@@ -43,7 +43,7 @@ class DivergentTest : HtmlRenderingOnlyTestBase() {
@Test
fun divergentBetweenSourceSets() {
- val page = TestPage {
+ val page = testPage {
divergentGroup(ContentDivergentGroup.GroupID("test")) {
instance(setOf(DRI("test", "Test")), setOf(js)) {
divergent {
@@ -69,7 +69,7 @@ class DivergentTest : HtmlRenderingOnlyTestBase() {
@Test
fun divergentInOneSourceSet() {
- val page = TestPage {
+ val page = testPage {
divergentGroup(ContentDivergentGroup.GroupID("test")) {
instance(setOf(DRI("test", "Test")), setOf(js)) {
divergent {
@@ -95,7 +95,7 @@ class DivergentTest : HtmlRenderingOnlyTestBase() {
@Test
fun divergentInAndBetweenSourceSets() {
- val page = TestPage {
+ val page = testPage {
divergentGroup(ContentDivergentGroup.GroupID("test")) {
instance(setOf(DRI("test", "Test")), setOf(native)) {
divergent {
@@ -131,7 +131,7 @@ class DivergentTest : HtmlRenderingOnlyTestBase() {
@Test
fun divergentInAndBetweenSourceSetsWithGrouping() {
- val page = TestPage {
+ val page = testPage {
divergentGroup(ContentDivergentGroup.GroupID("test")) {
instance(setOf(DRI("test", "Test")), setOf(native)) {
divergent {
@@ -184,7 +184,7 @@ class DivergentTest : HtmlRenderingOnlyTestBase() {
@Test
fun divergentSameBefore() {
- val page = TestPage {
+ val page = testPage {
divergentGroup(ContentDivergentGroup.GroupID("test")) {
instance(setOf(DRI("test", "Test")), setOf(native)) {
before {
@@ -219,7 +219,7 @@ class DivergentTest : HtmlRenderingOnlyTestBase() {
@Test
fun divergentSameAfter() {
- val page = TestPage {
+ val page = testPage {
divergentGroup(ContentDivergentGroup.GroupID("test")) {
instance(setOf(DRI("test", "Test")), setOf(native)) {
divergent {
@@ -251,7 +251,7 @@ class DivergentTest : HtmlRenderingOnlyTestBase() {
@Test
fun divergentGroupedByBeforeAndAfter() {
- val page = TestPage {
+ val page = testPage {
divergentGroup(ContentDivergentGroup.GroupID("test")) {
instance(setOf(DRI("test", "Test")), setOf(native)) {
before {
@@ -290,7 +290,7 @@ class DivergentTest : HtmlRenderingOnlyTestBase() {
@Test
fun divergentDifferentBeforeAndAfter() {
- val page = TestPage {
+ val page = testPage {
divergentGroup(ContentDivergentGroup.GroupID("test")) {
instance(setOf(DRI("test", "Test")), setOf(native)) {
before {
diff --git a/plugins/base/src/test/kotlin/renderers/html/GroupWrappingTest.kt b/plugins/base/src/test/kotlin/renderers/html/GroupWrappingTest.kt
index c0c03998..244163ec 100644
--- a/plugins/base/src/test/kotlin/renderers/html/GroupWrappingTest.kt
+++ b/plugins/base/src/test/kotlin/renderers/html/GroupWrappingTest.kt
@@ -12,7 +12,7 @@ class GroupWrappingTest : HtmlRenderingOnlyTestBase() {
@Test
fun notWrapped() {
- val page = TestPage {
+ val page = testPage {
group {
text("a")
text("b")
@@ -27,7 +27,7 @@ class GroupWrappingTest : HtmlRenderingOnlyTestBase() {
@Test
fun paragraphWrapped() {
- val page = TestPage {
+ val page = testPage {
group(styles = setOf(TextStyle.Paragraph)) {
text("a")
text("b")
@@ -42,7 +42,7 @@ class GroupWrappingTest : HtmlRenderingOnlyTestBase() {
@Test
fun blockWrapped() {
- val page = TestPage {
+ val page = testPage {
group(styles = setOf(TextStyle.Block)) {
text("a")
text("b")
@@ -57,7 +57,7 @@ class GroupWrappingTest : HtmlRenderingOnlyTestBase() {
@Test
fun nested() {
- val page = TestPage {
+ val page = testPage {
group(styles = setOf(TextStyle.Block)) {
text("a")
group(styles = setOf(TextStyle.Block)) {
diff --git a/plugins/base/src/test/kotlin/renderers/html/SourceSetDependentHintTest.kt b/plugins/base/src/test/kotlin/renderers/html/SourceSetDependentHintTest.kt
index 6be3839d..633a59a7 100644
--- a/plugins/base/src/test/kotlin/renderers/html/SourceSetDependentHintTest.kt
+++ b/plugins/base/src/test/kotlin/renderers/html/SourceSetDependentHintTest.kt
@@ -4,7 +4,7 @@ import org.jetbrains.dokka.Platform
import org.jetbrains.dokka.base.renderers.html.HtmlRenderer
import org.jetbrains.dokka.pages.TextStyle
import org.junit.jupiter.api.Test
-import renderers.TestPage
+import renderers.testPage
import testApi.testRunner.defaultSourceSet
import utils.Div
import utils.match
@@ -33,7 +33,7 @@ class SourceSetDependentHintTest : HtmlRenderingOnlyTestBase() {
@Test
fun platformIndependentCase() {
- val page = TestPage {
+ val page = testPage {
sourceSetDependentHint(sourceSets = setOf(pl1, pl2, pl3), styles = setOf(TextStyle.Block)) {
text("a")
text("b")
@@ -47,7 +47,7 @@ class SourceSetDependentHintTest : HtmlRenderingOnlyTestBase() {
@Test
fun completelyDivergentCase() {
- val page = TestPage {
+ val page = testPage {
sourceSetDependentHint(sourceSets = setOf(pl1, pl2, pl3), styles = setOf(TextStyle.Block)) {
text("a", sourceSets = setOf(pl1))
text("b", sourceSets = setOf(pl2))
@@ -61,7 +61,7 @@ class SourceSetDependentHintTest : HtmlRenderingOnlyTestBase() {
@Test
fun overlappingCase() {
- val page = TestPage {
+ val page = testPage {
sourceSetDependentHint(sourceSets = setOf(pl1, pl2), styles = setOf(TextStyle.Block)) {
text("a", sourceSets = setOf(pl1))
text("b", sourceSets = setOf(pl1, pl2))
@@ -75,7 +75,7 @@ class SourceSetDependentHintTest : HtmlRenderingOnlyTestBase() {
@Test
fun caseThatCanBeSimplified() {
- val page = TestPage {
+ val page = testPage {
sourceSetDependentHint(sourceSets = setOf(pl1, pl2), styles = setOf(TextStyle.Block)) {
text("a", sourceSets = setOf(pl1, pl2))
text("b", sourceSets = setOf(pl1))
@@ -89,7 +89,7 @@ class SourceSetDependentHintTest : HtmlRenderingOnlyTestBase() {
@Test
fun caseWithGroupBreakingSimplification() {
- val page = TestPage {
+ val page = testPage {
sourceSetDependentHint(sourceSets = setOf(pl1, pl2), styles = setOf(TextStyle.Block)) {
group(styles = setOf(TextStyle.Block)) {
text("a", sourceSets = setOf(pl1, pl2))
@@ -105,7 +105,7 @@ class SourceSetDependentHintTest : HtmlRenderingOnlyTestBase() {
@Test
fun caseWithGroupNotBreakingSimplification() {
- val page = TestPage {
+ val page = testPage {
sourceSetDependentHint(sourceSets = setOf(pl1, pl2)) {
group {
text("a", sourceSets = setOf(pl1, pl2))
@@ -121,7 +121,7 @@ class SourceSetDependentHintTest : HtmlRenderingOnlyTestBase() {
@Test
fun partiallyUnifiedCase() {
- val page = TestPage {
+ val page = testPage {
sourceSetDependentHint(sourceSets = setOf(pl1, pl2, pl3), styles = setOf(TextStyle.Block)) {
text("a", sourceSets = setOf(pl1))
text("a", sourceSets = setOf(pl2))