Fix KotlinLibTest and remove redundant tests.
This commit is contained in:
@@ -20,9 +20,6 @@ import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.k2js.config.EcmaVersion;
|
||||
import org.jetbrains.k2js.test.SingleFileTranslationTest;
|
||||
import org.jetbrains.k2js.test.rhino.RhinoFunctionResultChecker;
|
||||
import org.jetbrains.k2js.test.rhino.RhinoResultChecker;
|
||||
import org.mozilla.javascript.Context;
|
||||
import org.mozilla.javascript.Scriptable;
|
||||
|
||||
import static org.jetbrains.k2js.test.rhino.RhinoUtils.runRhinoTest;
|
||||
|
||||
@@ -35,15 +32,6 @@ public final class KotlinLibTest extends SingleFileTranslationTest {
|
||||
super("kotlinLib/");
|
||||
}
|
||||
|
||||
public void testKotlinJsLibRunsWithRhino() throws Exception {
|
||||
runRhinoTest(additionalJSFiles(EcmaVersion.v3), new RhinoResultChecker() {
|
||||
@Override
|
||||
public void runChecks(Context context, Scriptable scope) throws Exception {
|
||||
//do nothing
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void testNamespaceHasDeclaredFunction() throws Exception {
|
||||
runJavascriptTest("namespace.js");
|
||||
}
|
||||
@@ -68,11 +56,6 @@ public final class KotlinLibTest extends SingleFileTranslationTest {
|
||||
runJavascriptTest("isComplexTest.js");
|
||||
}
|
||||
|
||||
|
||||
public void testCommaExpression() throws Exception {
|
||||
runJavascriptTest("commaExpression.js");
|
||||
}
|
||||
|
||||
public void testArray() throws Exception {
|
||||
runJavascriptTest("array.js");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user