diff --git a/.idea/compiler.xml b/.idea/compiler.xml index ae1ba08c1..d8fafdea9 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -40,6 +40,7 @@ + @@ -69,6 +70,7 @@ + diff --git a/.idea/modules.xml b/.idea/modules.xml index a259e2964..1d2fb72df 100644 --- a/.idea/modules.xml +++ b/.idea/modules.xml @@ -3,7 +3,6 @@ - @@ -21,6 +20,7 @@ + diff --git a/html4j/pom.xml b/html4j/pom.xml index 0c736bd6d..1ff7d9579 100644 --- a/html4j/pom.xml +++ b/html4j/pom.xml @@ -66,70 +66,6 @@ - - org.teavm - teavm-maven-plugin - ${project.version} - - - generate-javascript-tests - - testCompile - - - false - ${project.build.directory}/javascript-test - true - true - - - - generate-javascript-tck - - testCompile - - - false - true - ${project.build.directory}/javascript-tck - org.teavm.html4j.testing.KOTestAdapter - - org.teavm.javascript.NullPointerExceptionTransformer - - true - true - true - - **.GC*Test - - - - - run-javascript-tests - - test - - - ${teavm.test.skip} - ${teavm.test.threads} - ${teavm.test.selenium} - - - - run-javascript-tck - - test - - - ${project.build.directory}/javascript-tck - ${project.build.directory}/teavm-tck-report.json - true - ${teavm.test.threads} - ${teavm.test.selenium} - - - - org.apache.maven.plugins maven-source-plugin diff --git a/samples/kotlin/pom.xml b/samples/kotlin/pom.xml index c1e22571b..4a0084e9b 100644 --- a/samples/kotlin/pom.xml +++ b/samples/kotlin/pom.xml @@ -96,7 +96,7 @@ ${project.build.directory}/generated/js/teavm - org.teavm.samples.kotlin.KotlinPackage + org.teavm.samples.kotlin.HelloKt SEPARATE false true diff --git a/samples/kotlin/src/main/webapp/index.html b/samples/kotlin/src/main/webapp/index.html index 988fa4e9a..b1f851d52 100644 --- a/samples/kotlin/src/main/webapp/index.html +++ b/samples/kotlin/src/main/webapp/index.html @@ -13,18 +13,12 @@
 package org.teavm.samples.kotlin
 
-import org.teavm.jso.*
-import org.teavm.dom.browser.*
-import org.teavm.dom.html.*
-import org.teavm.dom.events.*
+import org.teavm.jso.browser.*
 
-fun main(args : Array<String>) {
-    var window = JS.getGlobal() as Window;
-    var document = window.getDocument();
+fun main(args : Array<String>) {
+    val document = Window.current().document;
 
-    document.getElementById("hello-kotlin").addEventListener("click", EventListener<MouseEvent>() {
-       window.alert("Hello, developer!");
-    })
+    document.getElementById("hello-kotlin").addEventListener("click") { Window.alert("Hello, developer!") }
 }
     
diff --git a/tests/pom.xml b/tests/pom.xml index 038ef44e3..61621a25a 100644 --- a/tests/pom.xml +++ b/tests/pom.xml @@ -84,11 +84,12 @@ org.apache.maven.plugins maven-surefire-plugin + 2.16 - - org/teavm/platform/**/*.java - org/teavm/jso/**/*.java - + + ${project.build.directory}/js-tests + htmlunit + diff --git a/tests/teavm-tests.iml b/tests/teavm-tests.iml index d808ac0cf..eb265e73c 100644 --- a/tests/teavm-tests.iml +++ b/tests/teavm-tests.iml @@ -25,7 +25,7 @@ - + diff --git a/tools/junit/pom.xml b/tools/junit/pom.xml index c931d5118..ba9ff4d51 100644 --- a/tools/junit/pom.xml +++ b/tools/junit/pom.xml @@ -64,6 +64,7 @@ maven-checkstyle-plugin ../../checkstyle.xml + config_loc=${basedir}/../.. diff --git a/tools/junit/src/main/java/org/teavm/junit/TestRunner.java b/tools/junit/src/main/java/org/teavm/junit/TestRunner.java index 54ceb990c..0938fa027 100644 --- a/tools/junit/src/main/java/org/teavm/junit/TestRunner.java +++ b/tools/junit/src/main/java/org/teavm/junit/TestRunner.java @@ -17,7 +17,6 @@ package org.teavm.junit; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.node.ObjectNode; -import java.io.IOException; import java.util.concurrent.BlockingQueue; import java.util.concurrent.CountDownLatch; import java.util.concurrent.LinkedBlockingQueue;