KT-3008 Fix UMD and plain module wrappers when module id is not a valid JS identifier
This commit is contained in:
@@ -51,10 +51,26 @@ class MultiModuleWrappersTest() : MultipleModulesTranslationTest("multiModuleWra
|
||||
runTest("simple")
|
||||
}
|
||||
|
||||
@WithModuleKind(ModuleKind.UMD) fun testPlain() {
|
||||
@WithModuleKind(ModuleKind.PLAIN) fun testPlain() {
|
||||
runTest("simple")
|
||||
}
|
||||
|
||||
@WithModuleKind(ModuleKind.AMD) fun testAmdModuleWithNonIdentifierName() {
|
||||
runTest("moduleWithNonIdentifierName")
|
||||
}
|
||||
|
||||
@WithModuleKind(ModuleKind.COMMON_JS) fun testCommonJsModuleWithNonIdentifierName() {
|
||||
runTest("moduleWithNonIdentifierName")
|
||||
}
|
||||
|
||||
@WithModuleKind(ModuleKind.UMD) fun testUmdModuleWithNonIdentifierName() {
|
||||
runTest("moduleWithNonIdentifierName")
|
||||
}
|
||||
|
||||
@WithModuleKind(ModuleKind.PLAIN) fun testPlainModuleWithNonIdentifierName() {
|
||||
runTest("moduleWithNonIdentifierName")
|
||||
}
|
||||
|
||||
fun runTest(name: String) {
|
||||
overridenTestName = name
|
||||
doTest("${pathToTestDir()}/cases/$name")
|
||||
|
||||
Reference in New Issue
Block a user