added a test case for using the kotlin.browser package from JS (which fails so far, but its a start ;)

This commit is contained in:
James Strachan
2012-05-24 13:08:14 +01:00
parent ddf9101fb1
commit 296a5b6b6c
3 changed files with 65 additions and 0 deletions
@@ -0,0 +1,10 @@
package sample.browser
import kotlin.browser.document
fun myApp() {
val element = document.getElementById("foo")
if (element != null) {
element.appendChild(document.createTextNode("Some Dynamically Created Contenet!!!"))
}
}