diff --git a/html/compose-compiler-integration/src/jsTest/kotlin/AnonymousObjectsInComposable.kt b/html/compose-compiler-integration/src/jsTest/kotlin/AnonymousObjectsInComposable.kt index 0bd10d56b0..75b4bdbd59 100644 --- a/html/compose-compiler-integration/src/jsTest/kotlin/AnonymousObjectsInComposable.kt +++ b/html/compose-compiler-integration/src/jsTest/kotlin/AnonymousObjectsInComposable.kt @@ -18,7 +18,7 @@ class AnonymousObjectsInComposable { content.Abc() } - assertEquals("
Abc
", document.body!!.firstElementChild!!.outerHTML) + assertEquals("
Abc
", document.body!!.lastElementChild!!.outerHTML) } @Test @@ -30,7 +30,7 @@ class AnonymousObjectsInComposable { HasLocalClassWithComposable() } - assertEquals("
Abc2
", document.body!!.firstElementChild!!.outerHTML) + assertEquals("
Abc2
", document.body!!.lastElementChild!!.outerHTML) } @Test @@ -41,7 +41,7 @@ class AnonymousObjectsInComposable { TestConstructor { return@TestConstructor 111 }.otherComposable!!.invoke() } - assertEquals("
Abc223-111
", document.body!!.firstElementChild!!.outerHTML) + assertEquals("
Abc223-111
", document.body!!.lastElementChild!!.outerHTML) } } diff --git a/html/compose-compiler-integration/src/jsTest/kotlin/ComposableLambdaCalls.kt b/html/compose-compiler-integration/src/jsTest/kotlin/ComposableLambdaCalls.kt index 4522dbc1b6..21d686d4cb 100644 --- a/html/compose-compiler-integration/src/jsTest/kotlin/ComposableLambdaCalls.kt +++ b/html/compose-compiler-integration/src/jsTest/kotlin/ComposableLambdaCalls.kt @@ -25,7 +25,7 @@ class ComposableLambdaCalls { } } - assertEquals("
SomeText
", document.body!!.firstElementChild!!.outerHTML) + assertEquals("
SomeText
", document.body!!.lastElementChild!!.outerHTML) } @Test @@ -36,7 +36,7 @@ class ComposableLambdaCalls { } } - assertEquals("
Text1
", document.body!!.firstElementChild!!.outerHTML) + assertEquals("
Text1
", document.body!!.lastElementChild!!.outerHTML) } @Test @@ -51,7 +51,7 @@ class ComposableLambdaCalls { } } - assertEquals("
TextA
", document.body!!.firstElementChild!!.outerHTML) + assertEquals("
TextA
", document.body!!.lastElementChild!!.outerHTML) } @Test @@ -64,7 +64,7 @@ class ComposableLambdaCalls { } } - assertEquals("
", document.body!!.firstElementChild!!.outerHTML) + assertEquals("
", document.body!!.lastElementChild!!.outerHTML) } @Test @@ -84,7 +84,7 @@ class ComposableLambdaCalls { } } - assertEquals("
", document.body!!.firstElementChild!!.outerHTML) + assertEquals("
", document.body!!.lastElementChild!!.outerHTML) assertEquals(false, someIntInvoked, message = "someInt() should never be invoked as `l` is null") } @@ -107,7 +107,7 @@ class ComposableLambdaCalls { } } - assertEquals("
Text10
", document.body!!.firstElementChild!!.outerHTML) + assertEquals("
Text10
", document.body!!.lastElementChild!!.outerHTML) assertEquals(true, someIntInvoked) } @@ -123,7 +123,7 @@ class ComposableLambdaCalls { } } - assertEquals("
Text-SomeText
", document.body!!.firstElementChild!!.outerHTML) + assertEquals("
Text-SomeText
", document.body!!.lastElementChild!!.outerHTML) } @Test @@ -136,6 +136,6 @@ class ComposableLambdaCalls { } } - assertEquals("
SuperText
", document.body!!.firstElementChild!!.outerHTML) + assertEquals("
SuperText
", document.body!!.lastElementChild!!.outerHTML) } }