JS backend: introduce constants for default test package(foo) and default test function(box).

This commit is contained in:
Zalim Bashorov
2013-12-17 16:32:32 +04:00
parent 5d94c7e83c
commit fa552859be
11 changed files with 22 additions and 22 deletions
@@ -4,7 +4,7 @@ class Test() {
var a : Int = 1
}
fun f() : Int {
fun box() : Int {
var a = Test()
var b = Test()
b.a = 100
@@ -3,7 +3,7 @@ package test.browser
import js.dom.html.document
import org.w3c.dom.Node
fun foo(): String {
fun box(): String {
val element = document.getElementById("foo")!!
val textNode = document.createTextNode("Some Dynamically Created Content!!!")
element.appendChild(textNode)