Minor in JS backend: added regression tests.
#{KT-2219, KT-2470, KT-2507, KT-2222, KT-2995, KT-2221} Obsolete
This commit is contained in:
@@ -32,6 +32,10 @@ public final class ClassInheritanceTest extends SingleFileTranslationTest {
|
||||
checkFooBoxIsOk();
|
||||
}
|
||||
|
||||
public void testOverrideAnyMethods() throws Exception {
|
||||
checkFooBoxIsOk();
|
||||
}
|
||||
|
||||
public void testBaseCall() throws Exception {
|
||||
checkFooBoxIsOk();
|
||||
}
|
||||
@@ -75,9 +79,14 @@ public final class ClassInheritanceTest extends SingleFileTranslationTest {
|
||||
public void testKt3499() throws Exception {
|
||||
fooBoxTest();
|
||||
}
|
||||
|
||||
public void testFromFakeClasses() throws Exception {
|
||||
checkFooBoxIsOk();
|
||||
}
|
||||
|
||||
public void testWithInitializeMethod() throws Exception {
|
||||
checkFooBoxIsOk();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -78,6 +78,10 @@ public class FunctionTest extends AbstractExpressionTest {
|
||||
fooBoxTest();
|
||||
}
|
||||
|
||||
public void testFunctionExpression() throws Exception {
|
||||
checkFooBoxIsOk();
|
||||
}
|
||||
|
||||
public void testExpressionAsFunction() throws Exception {
|
||||
fooBoxTest();
|
||||
}
|
||||
@@ -123,6 +127,14 @@ public class FunctionTest extends AbstractExpressionTest {
|
||||
checkFooBoxIsOk();
|
||||
}
|
||||
|
||||
public void testOverloadOverridenFun() throws Exception {
|
||||
checkFooBoxIsOk();
|
||||
}
|
||||
|
||||
public void testOverloadClassConstructorByFactoryMethod() throws Exception {
|
||||
checkFooBoxIsOk();
|
||||
}
|
||||
|
||||
public void testManglingAnyMethods() throws Exception {
|
||||
checkFooBoxIsOk();
|
||||
}
|
||||
|
||||
@@ -29,7 +29,4 @@ public final class IdentifierClashTest extends AbstractExpressionTest {
|
||||
public void testOverloadedFun() throws Exception {
|
||||
fooBoxTest();
|
||||
}
|
||||
|
||||
public void testDummyFunctionToMakeTestWork() {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -174,12 +174,6 @@ public final class MiscTest extends AbstractExpressionTest {
|
||||
fooBoxIsValue("OK");
|
||||
}
|
||||
|
||||
//TODO:see http://youtrack.jetbrains.com/issue/KT-2565
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
public void TODO_testFunctionExpression() throws Exception {
|
||||
fooBoxIsValue("OK");
|
||||
}
|
||||
|
||||
public void testExclExclThrows() throws Exception {
|
||||
try {
|
||||
fooBoxTest();
|
||||
|
||||
@@ -85,4 +85,8 @@ public final class PatternMatchingTest extends SingleFileTranslationTest {
|
||||
public void testWhenWithOnlyElse() throws Exception {
|
||||
fooBoxTest();
|
||||
}
|
||||
|
||||
public void testIfInWhen() throws Exception {
|
||||
checkFooBoxIsOk();
|
||||
}
|
||||
}
|
||||
+9
-9
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2010-2013 JetBrains s.r.o.
|
||||
* Copyright 2010-2014 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -16,15 +16,15 @@
|
||||
|
||||
package org.jetbrains.k2js.test.semantics;
|
||||
|
||||
public final class ToStringTest extends AbstractExpressionTest {
|
||||
import org.jetbrains.k2js.test.SingleFileTranslationTest;
|
||||
|
||||
public ToStringTest() {
|
||||
super("toString/");
|
||||
public final class RegressionTest extends SingleFileTranslationTest {
|
||||
|
||||
public RegressionTest() {
|
||||
super("regression/");
|
||||
}
|
||||
|
||||
public void testToString() throws Exception {
|
||||
// TODO uncomment this method to make the test case fail
|
||||
//fooBoxIsValue("Foo(James)");
|
||||
public void testKt2470() throws Exception {
|
||||
checkFooBoxIsOk();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user