[JVM] Implement new inlined variable naming format
^KT-65478 fixed
This commit is contained in:
committed by
Alexander Udalov
parent
9ea775cbed
commit
407448d8e3
@@ -216,7 +216,9 @@ fun main(args: Array<String>) {
|
||||
}
|
||||
|
||||
testClass<AbstractIrJsLocalVariableTest> {
|
||||
model("debug/localVariables")
|
||||
// The tests in the 'inlineScopes' directory are meant to test a JVM backend
|
||||
// specific feature, so there is no reason to enable them for JS.
|
||||
model("debug/localVariables", excludeDirs = listOf("inlineScopes"))
|
||||
}
|
||||
|
||||
testClass<AbstractFirPsiJsDiagnosticWithBackendTest>(suiteTestClassName = "FirPsiJsKlibDiagnosticsTestGenerated") {
|
||||
|
||||
@@ -22,6 +22,7 @@ import org.jetbrains.kotlin.test.directives.JsEnvironmentConfigurationDirectives
|
||||
import org.jetbrains.kotlin.test.model.TestModule
|
||||
import org.jetbrains.kotlin.test.services.TestServices
|
||||
import org.jetbrains.kotlin.test.services.configuration.JsEnvironmentConfigurator
|
||||
import org.jetbrains.kotlin.test.services.defaultDirectives
|
||||
import org.jetbrains.kotlin.test.services.moduleStructure
|
||||
import org.jetbrains.kotlin.test.utils.*
|
||||
import java.io.File
|
||||
@@ -140,7 +141,8 @@ class JsDebugRunner(testServices: TestServices, private val localVariables: Bool
|
||||
mainModule.frontendKind,
|
||||
mainModule.targetBackend ?: TargetBackend.JS_IR,
|
||||
originalFile,
|
||||
loggedItems
|
||||
loggedItems,
|
||||
testServices.defaultDirectives
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
+7
-1
@@ -22,7 +22,7 @@ import java.util.regex.Pattern;
|
||||
public class IrJsLocalVariableTestGenerated extends AbstractIrJsLocalVariableTest {
|
||||
@Test
|
||||
public void testAllFilesPresentInLocalVariables() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/debug/localVariables"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/debug/localVariables"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true, "inlineScopes");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -109,6 +109,12 @@ public class IrJsLocalVariableTestGenerated extends AbstractIrJsLocalVariableTes
|
||||
runTest("compiler/testData/debug/localVariables/localFunUnused.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("manyInlineFunsInObject.kt")
|
||||
public void testManyInlineFunsInObject() {
|
||||
runTest("compiler/testData/debug/localVariables/manyInlineFunsInObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("tryFinally.kt")
|
||||
public void testTryFinally() {
|
||||
|
||||
Reference in New Issue
Block a user