KJS: remove useless StdLibTest

This commit is contained in:
Zalim Bashorov
2017-03-20 21:10:39 +03:00
committed by Zalim Bashorov
parent 62a55b7b00
commit 725b0100e2
2 changed files with 0 additions and 93 deletions
@@ -1,13 +0,0 @@
package test.browser
import kotlin.browser.document
import org.w3c.dom.Node
fun box(): String {
val element = document.getElementById("foo")!!
val textNode = document.createTextNode("Some Dynamically Created Content!!!")
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!!
}