Fixed test paths in JS tests
This commit is contained in:
+1
-1
@@ -10,7 +10,7 @@
|
||||
<option name="TEST_OBJECT" value="package" />
|
||||
<option name="VM_PARAMETERS" value="-ea" />
|
||||
<option name="PARAMETERS" value="" />
|
||||
<option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$/js" />
|
||||
<option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$" />
|
||||
<option name="ENV_VARIABLES" />
|
||||
<option name="PASS_PARENT_ENVS" value="true" />
|
||||
<option name="TEST_SEARCH_SCOPE">
|
||||
|
||||
@@ -33,7 +33,7 @@ import static org.jetbrains.k2js.test.utils.JsTestUtils.convertFileNameToDotJsFi
|
||||
public abstract class BasicTest extends TestWithEnvironment {
|
||||
|
||||
private static final boolean DELETE_OUT = false;
|
||||
private static final String TEST_FILES = "js.translator/testFiles/";
|
||||
private static final String TEST_FILES = "js/js.translator/testFiles/";
|
||||
private static final String CASES = "cases/";
|
||||
private static final String OUT = "out/";
|
||||
private static final String KOTLIN_JS_LIB = pathToTestFilesRoot() + "kotlin_lib.js";
|
||||
|
||||
@@ -63,7 +63,7 @@ public final class TestConfig extends Config {
|
||||
libFiles.add(file);
|
||||
} catch (FileNotFoundException e) {
|
||||
//TODO: throw generic expception
|
||||
throw new AssertionError("Lib files not found.");
|
||||
throw new IllegalStateException(e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ public abstract class Config {
|
||||
"/html5/image.kt"
|
||||
);
|
||||
|
||||
protected static final String LIBRARIES_LOCATION = "js.libraries/src";
|
||||
protected static final String LIBRARIES_LOCATION = "js/js.libraries/src";
|
||||
|
||||
@NotNull
|
||||
private final Project project;
|
||||
|
||||
Reference in New Issue
Block a user