JS fix tests failed due to api change

This commit is contained in:
Sergey Mashkov
2015-05-05 15:03:58 +03:00
committed by Sergey Mashkov
parent 4bc91ba652
commit 33c1d5d2cf
6 changed files with 20 additions and 108 deletions
@@ -9,5 +9,5 @@ fun box(): String {
element.appendChild(textNode)
if (textNode.nodeType != Node.TEXT_NODE) return "The type of the node is ${textNode.nodeType}, ${Node.TEXT_NODE} was expected"
if (element.nodeType != Node.ELEMENT_NODE) return "The type of the node is ${element.nodeType}, ${Node.ELEMENT_NODE} was expected"
return element.textContent
return element.textContent!!
}