JS: fix BasicIrBoxTest constructor & regenerate the tests

This commit is contained in:
Anton Bannykh
2018-04-11 21:27:24 +03:00
committed by Anton Bannykh
parent 934c56a4da
commit 4e11555c46
2 changed files with 44 additions and 9 deletions
@@ -18,7 +18,7 @@ abstract class BasicIrBoxTest(
pathToRootOutputDir: String = BasicBoxTest.TEST_DATA_DIR_PATH, pathToRootOutputDir: String = BasicBoxTest.TEST_DATA_DIR_PATH,
generateSourceMap: Boolean = false, generateSourceMap: Boolean = false,
generateNodeJsRunner: Boolean = false generateNodeJsRunner: Boolean = false
) : BasicBoxTest(pathToTestDir, testGroupOutputDirPrefix, pathToRootOutputDir, generateSourceMap, generateNodeJsRunner) { ) : BasicBoxTest(pathToTestDir, testGroupOutputDirPrefix, pathToRootOutputDir, true, generateSourceMap, generateNodeJsRunner) {
override var skipMinification = true override var skipMinification = true
@@ -1,5 +1,5 @@
/* /*
* Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the license/LICENSE.txt file. * that can be found in the license/LICENSE.txt file.
*/ */
@@ -58,37 +58,52 @@ public class JsLegacyPrimitiveArraysBoxTestGenerated extends AbstractJsLegacyPri
@TestMetadata("arraysAreCloneable.kt") @TestMetadata("arraysAreCloneable.kt")
public void testArraysAreCloneable() throws Exception { public void testArraysAreCloneable() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/arrays/arraysAreCloneable.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/arrays/arraysAreCloneable.kt");
if (KotlinTestUtils.RUN_IGNORED_TESTS_AS_REGULAR) {
doTest(fileName);
return;
}
try { try {
doTest(fileName); doTest(fileName);
} }
catch (Throwable ignore) { catch (Throwable ignore) {
ignore.printStackTrace();
return; return;
} }
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive or add it to whitelist for that.");
} }
@TestMetadata("cloneArray.kt") @TestMetadata("cloneArray.kt")
public void testCloneArray() throws Exception { public void testCloneArray() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/arrays/cloneArray.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/arrays/cloneArray.kt");
if (KotlinTestUtils.RUN_IGNORED_TESTS_AS_REGULAR) {
doTest(fileName);
return;
}
try { try {
doTest(fileName); doTest(fileName);
} }
catch (Throwable ignore) { catch (Throwable ignore) {
ignore.printStackTrace();
return; return;
} }
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive or add it to whitelist for that.");
} }
@TestMetadata("clonePrimitiveArrays.kt") @TestMetadata("clonePrimitiveArrays.kt")
public void testClonePrimitiveArrays() throws Exception { public void testClonePrimitiveArrays() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/arrays/clonePrimitiveArrays.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/arrays/clonePrimitiveArrays.kt");
if (KotlinTestUtils.RUN_IGNORED_TESTS_AS_REGULAR) {
doTest(fileName);
return;
}
try { try {
doTest(fileName); doTest(fileName);
} }
catch (Throwable ignore) { catch (Throwable ignore) {
ignore.printStackTrace();
return; return;
} }
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive or add it to whitelist for that.");
} }
@TestMetadata("collectionAssignGetMultiIndex.kt") @TestMetadata("collectionAssignGetMultiIndex.kt")
@@ -268,13 +283,18 @@ public class JsLegacyPrimitiveArraysBoxTestGenerated extends AbstractJsLegacyPri
@TestMetadata("kt17134.kt") @TestMetadata("kt17134.kt")
public void testKt17134() throws Exception { public void testKt17134() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/arrays/kt17134.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/arrays/kt17134.kt");
if (KotlinTestUtils.RUN_IGNORED_TESTS_AS_REGULAR) {
doTest(fileName);
return;
}
try { try {
doTest(fileName); doTest(fileName);
} }
catch (Throwable ignore) { catch (Throwable ignore) {
ignore.printStackTrace();
return; return;
} }
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive or add it to whitelist for that.");
} }
@TestMetadata("kt238.kt") @TestMetadata("kt238.kt")
@@ -322,13 +342,18 @@ public class JsLegacyPrimitiveArraysBoxTestGenerated extends AbstractJsLegacyPri
@TestMetadata("kt503.kt") @TestMetadata("kt503.kt")
public void testKt503() throws Exception { public void testKt503() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/arrays/kt503.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/arrays/kt503.kt");
if (KotlinTestUtils.RUN_IGNORED_TESTS_AS_REGULAR) {
doTest(fileName);
return;
}
try { try {
doTest(fileName); doTest(fileName);
} }
catch (Throwable ignore) { catch (Throwable ignore) {
ignore.printStackTrace();
return; return;
} }
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive or add it to whitelist for that.");
} }
@TestMetadata("kt594.kt") @TestMetadata("kt594.kt")
@@ -340,13 +365,18 @@ public class JsLegacyPrimitiveArraysBoxTestGenerated extends AbstractJsLegacyPri
@TestMetadata("kt602.kt") @TestMetadata("kt602.kt")
public void testKt602() throws Exception { public void testKt602() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/arrays/kt602.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/arrays/kt602.kt");
if (KotlinTestUtils.RUN_IGNORED_TESTS_AS_REGULAR) {
doTest(fileName);
return;
}
try { try {
doTest(fileName); doTest(fileName);
} }
catch (Throwable ignore) { catch (Throwable ignore) {
ignore.printStackTrace();
return; return;
} }
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive or add it to whitelist for that.");
} }
@TestMetadata("kt7009.kt") @TestMetadata("kt7009.kt")
@@ -364,13 +394,18 @@ public class JsLegacyPrimitiveArraysBoxTestGenerated extends AbstractJsLegacyPri
@TestMetadata("kt7338.kt") @TestMetadata("kt7338.kt")
public void testKt7338() throws Exception { public void testKt7338() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/arrays/kt7338.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/arrays/kt7338.kt");
if (KotlinTestUtils.RUN_IGNORED_TESTS_AS_REGULAR) {
doTest(fileName);
return;
}
try { try {
doTest(fileName); doTest(fileName);
} }
catch (Throwable ignore) { catch (Throwable ignore) {
ignore.printStackTrace();
return; return;
} }
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive or add it to whitelist for that.");
} }
@TestMetadata("kt779.kt") @TestMetadata("kt779.kt")