From 72db3a16521408509f4a0f61ef110851a252d2cc Mon Sep 17 00:00:00 2001 From: Filip ZybaƂa Date: Mon, 6 Apr 2020 14:24:07 +0200 Subject: Change PlatformHintedContent rendering, js and css to match Figma style --- .../kotlin/renderers/html/PlatformDependentHintTest.kt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'plugins/base/src/test/kotlin/renderers') diff --git a/plugins/base/src/test/kotlin/renderers/html/PlatformDependentHintTest.kt b/plugins/base/src/test/kotlin/renderers/html/PlatformDependentHintTest.kt index a985886d..cf1ac0a9 100644 --- a/plugins/base/src/test/kotlin/renderers/html/PlatformDependentHintTest.kt +++ b/plugins/base/src/test/kotlin/renderers/html/PlatformDependentHintTest.kt @@ -26,7 +26,7 @@ class PlatformDependentHintTest : RenderingOnlyTestBase() { } HtmlRenderer(context).render(page) - renderedContent.match(Div("abc")) + renderedContent.match(Div(Div(Div("abc")))) } @Test @@ -40,7 +40,7 @@ class PlatformDependentHintTest : RenderingOnlyTestBase() { } HtmlRenderer(context).render(page) - renderedContent.match("[js]", Div("a"), "[jvm]", Div("b"), "[native]", Div("c")) + renderedContent.match(Div(Div(Div("a")), Div(Div("b")), Div(Div("c")))) } @Test @@ -54,7 +54,7 @@ class PlatformDependentHintTest : RenderingOnlyTestBase() { } HtmlRenderer(context).render(page) - renderedContent.match("[js]", Div("ab"), "[jvm]", Div("bc")) + renderedContent.match(Div(Div(Div("ab")), Div(Div("bc")))) } @Test @@ -68,7 +68,7 @@ class PlatformDependentHintTest : RenderingOnlyTestBase() { } HtmlRenderer(context).render(page) - renderedContent.match(Div("ab")) + renderedContent.match(Div(Div(Div("ab")))) } @Test @@ -84,7 +84,7 @@ class PlatformDependentHintTest : RenderingOnlyTestBase() { } HtmlRenderer(context).render(page) - renderedContent.match("[js]", Div(Div("ab")), "[jvm]", Div(Div("a"), "b")) + renderedContent.match(Div(Div(Div(Div("ab"))), Div(Div(Div("a"), "b")))) } @Test @@ -101,7 +101,7 @@ class PlatformDependentHintTest : RenderingOnlyTestBase() { HtmlRenderer(context).render(page) println(renderedContent) - renderedContent.match("ab") + renderedContent.match(Div(Div("ab"))) } @Test @@ -115,6 +115,6 @@ class PlatformDependentHintTest : RenderingOnlyTestBase() { } HtmlRenderer(context).render(page) - renderedContent.match("[js, jvm]", Div("a"), "[native]", Div("b")) + renderedContent.match(Div(Div(Div("a")), Div(Div("b")))) } } \ No newline at end of file -- cgit