Clean Dom and Dom tests.

This commit is contained in:
Ilya Ryzhenkov
2014-09-12 14:33:23 +04:00
committed by Andrey Breslav
parent cde74504d4
commit f2b9b370e1
4 changed files with 10 additions and 31 deletions
@@ -37,8 +37,6 @@ class DomBuilderTest() {
}
}
}
println("builder document: ${doc.toXmlString()}")
// test css selections on document
assertEquals(0, doc[".doesNotExist"].size())
@@ -90,7 +88,6 @@ class DomBuilderTest() {
}
val grandChild = doc["grandChild"].first
if (grandChild != null) {
println("got element ${grandChild.toXmlString()} with text '${grandChild.text}`")
assertEquals("Hello World!", grandChild.text)
assertEquals(" bar tiny", grandChild.attribute("class"))
@@ -127,8 +124,6 @@ class DomBuilderTest() {
fail("No child found!")
}
val children = doc.documentElement.children()
val xml = nodesToXmlString(children)
println("root element has children: ${xml}")
assertEquals(1, children.size())
}