diff options
author | Kamil Doległo <kamilok1965@interia.pl> | 2020-05-18 17:14:23 +0200 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-05-19 09:56:32 +0200 |
commit | 5451627eb0cf8d95dafd23e96665e062ef023d75 (patch) | |
tree | 3406e8930239681c41dadf47f75efd8bf2fde0a2 /plugins/base/src/test/kotlin/renderers | |
parent | f15ecdd5fadae9169c8b35e0bf8a1786d57563a7 (diff) | |
download | dokka-5451627eb0cf8d95dafd23e96665e062ef023d75.tar.gz dokka-5451627eb0cf8d95dafd23e96665e062ef023d75.tar.bz2 dokka-5451627eb0cf8d95dafd23e96665e062ef023d75.zip |
Add test utils for ContentDivergent and fix the tests
Diffstat (limited to 'plugins/base/src/test/kotlin/renderers')
-rw-r--r-- | plugins/base/src/test/kotlin/renderers/html/DivergentTest.kt | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/plugins/base/src/test/kotlin/renderers/html/DivergentTest.kt b/plugins/base/src/test/kotlin/renderers/html/DivergentTest.kt index fc6d22ac..1f310502 100644 --- a/plugins/base/src/test/kotlin/renderers/html/DivergentTest.kt +++ b/plugins/base/src/test/kotlin/renderers/html/DivergentTest.kt @@ -30,7 +30,7 @@ class DivergentTest : RenderingOnlyTestBase() { } } HtmlRenderer(context).render(page) - renderedContent.match(Div(Div("a"))) + renderedContent.match(Div(Div(Div("a")))) } @Test @@ -45,7 +45,7 @@ class DivergentTest : RenderingOnlyTestBase() { } } HtmlRenderer(context).render(page) - renderedContent.match("a") + renderedContent.match(Div("a")) } @Test @@ -71,7 +71,7 @@ class DivergentTest : RenderingOnlyTestBase() { } HtmlRenderer(context).render(page) - renderedContent.match(Div(Div("a"), Div("b"), Div("c"))) + renderedContent.match(Div(Div(Div("a"), Div("b"), Div("c")))) } @Test @@ -97,7 +97,7 @@ class DivergentTest : RenderingOnlyTestBase() { } HtmlRenderer(context).render(page) - renderedContent.match(Div(Div("abc"))) + renderedContent.match(Div(Div(Div("abc")))) } @Test @@ -133,7 +133,7 @@ class DivergentTest : RenderingOnlyTestBase() { } HtmlRenderer(context).render(page) - renderedContent.match(Div(Div("ae"), Div("bd"), Div("c"))) + renderedContent.match(Div(Div(Div("ae"), Div("bd"), Div("c")))) } @Test @@ -182,12 +182,12 @@ class DivergentTest : RenderingOnlyTestBase() { HtmlRenderer(context).render(page) renderedContent.match( - Div(Div("a")), + Div(Div(Div("a")), Div(Div())), "a+", - Div(Div("bd")), + Div(Div(Div("bd")), Div(Div())), "bd+", - Div(Div("c")), - Div(Div("e")), + Div(Div(Div("c")), Div(Div())), + Div(Div(Div("e")), Div(Div())), "e+" ) } @@ -218,7 +218,7 @@ class DivergentTest : RenderingOnlyTestBase() { HtmlRenderer(context).render(page) renderedContent.match( "ab-", - Div(Div("ab")) + Div(Div(Div("ab"))) ) } @@ -247,7 +247,7 @@ class DivergentTest : RenderingOnlyTestBase() { HtmlRenderer(context).render(page) renderedContent.match( - Div(Div("ab")), + Div(Div(Div("ab"))), "ab+" ) } @@ -284,7 +284,7 @@ class DivergentTest : RenderingOnlyTestBase() { HtmlRenderer(context).render(page) renderedContent.match( "ab-", - Div(Div("ab")), + Div(Div(Div("ab"))), "ab+" ) } @@ -321,9 +321,9 @@ class DivergentTest : RenderingOnlyTestBase() { HtmlRenderer(context).render(page) renderedContent.match( "a-", - Div(Div("a")), + Div(Div(Div("a")), Div(Div("NATIVE"))), "ab+b-", - Div(Div("b")), + Div(Div(Div("b")), Div(Div("NATIVE"))), "ab+" ) } |