JS tests for addClass, removeClass, removeFromParent

This commit is contained in:
Sergey Mashkov
2015-05-12 14:34:19 +03:00
committed by Sergey Mashkov
parent bcbfa3c240
commit a11e0a84b5
9 changed files with 131 additions and 89 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ class DomBuilderTest() {
}
val grandChild = doc["grandChild"].firstOrNull()
if (grandChild != null) {
assertEquals("Hello World!", grandChild.text)
assertEquals("Hello World!", grandChild.textContent)
assertEquals(" bar tiny", grandChild.attribute("class"))
// test the classSet
+1 -1
View File
@@ -37,7 +37,7 @@ class DomTest {
val xml = e.toXmlString()
println("element after text ${xml}")
assertEquals("hello", e.text)
assertEquals("hello", e.textContent)
}