[JS TESTS] Replace - symbol in module name with _
This commit is contained in:
+2
-2
@@ -3,7 +3,7 @@
|
||||
// RUN_PLAIN_BOX_FUNCTION
|
||||
// INFER_MAIN_MODULE
|
||||
|
||||
// MODULE: export-all-file
|
||||
// MODULE: export_all_file
|
||||
// FILE: lib.kt
|
||||
@file:JsExport
|
||||
|
||||
@@ -19,5 +19,5 @@ class B : A() {
|
||||
|
||||
// FILE: test.js
|
||||
function box() {
|
||||
return new this["export-all-file"].B().foo("K");
|
||||
return new this["export_all_file"].B().foo("K");
|
||||
}
|
||||
@@ -4,7 +4,7 @@
|
||||
// INFER_MAIN_MODULE
|
||||
// SKIP_DCE_DRIVEN
|
||||
|
||||
// MODULE: export-nested-class
|
||||
// MODULE: export_nested_class
|
||||
// FILE: lib.kt
|
||||
|
||||
abstract class A {
|
||||
@@ -26,5 +26,5 @@ class B {
|
||||
|
||||
// FILE: test.js
|
||||
function box() {
|
||||
return new this["export-nested-class"].B.Foo().bar("K");
|
||||
return new this["export_nested_class"].B.Foo().bar("K");
|
||||
}
|
||||
@@ -4,7 +4,7 @@
|
||||
// INFER_MAIN_MODULE
|
||||
// SKIP_NODE_JS
|
||||
|
||||
// MODULE: non-identifier-module-name
|
||||
// MODULE: non_identifier_module_name
|
||||
// FILE: lib.kt
|
||||
@JsName("foo")
|
||||
@JsExport
|
||||
@@ -12,5 +12,5 @@ public fun foo(k: String): String = "O$k"
|
||||
|
||||
// FILE: test.js
|
||||
function box() {
|
||||
return this["non-identifier-module-name"].foo("K");
|
||||
return this["non_identifier_module_name"].foo("K");
|
||||
}
|
||||
|
||||
+2
-2
@@ -3,7 +3,7 @@
|
||||
// RUN_PLAIN_BOX_FUNCTION
|
||||
// INFER_MAIN_MODULE
|
||||
|
||||
// MODULE: overriden-chain-non-export-intermediate
|
||||
// MODULE: overriden_chain_non_export_intermediate
|
||||
// FILE: lib.kt
|
||||
@JsExport
|
||||
abstract class A {
|
||||
@@ -29,7 +29,7 @@ class C : B() {
|
||||
// FILE: test.js
|
||||
|
||||
function box() {
|
||||
return test(new this["overriden-chain-non-export-intermediate"].C());
|
||||
return test(new this["overriden_chain_non_export_intermediate"].C());
|
||||
}
|
||||
|
||||
function test(c) {
|
||||
|
||||
+2
-2
@@ -3,7 +3,7 @@
|
||||
// RUN_PLAIN_BOX_FUNCTION
|
||||
// INFER_MAIN_MODULE
|
||||
|
||||
// MODULE: overriden-external-method-with-same-name-method
|
||||
// MODULE: overriden_external_method_with_same_name_method
|
||||
// FILE: lib.kt
|
||||
external abstract class Foo {
|
||||
abstract fun o(): String
|
||||
@@ -31,7 +31,7 @@ Foo.prototype.k = function() {
|
||||
}
|
||||
|
||||
function box() {
|
||||
return test(new this["overriden-external-method-with-same-name-method"].Baz());
|
||||
return test(new this["overriden_external_method_with_same_name_method"].Baz());
|
||||
}
|
||||
|
||||
function test(foo) {
|
||||
|
||||
+2
-2
@@ -3,7 +3,7 @@
|
||||
// RUN_PLAIN_BOX_FUNCTION
|
||||
// INFER_MAIN_MODULE
|
||||
|
||||
// MODULE: overriden-external-method-with-same-stable-name-method
|
||||
// MODULE: overriden_external_method_with_same_stable_name_method
|
||||
// FILE: lib.kt
|
||||
external abstract class Foo {
|
||||
abstract fun o(): String
|
||||
@@ -32,7 +32,7 @@ Foo.prototype.k = function() {
|
||||
}
|
||||
|
||||
function box() {
|
||||
return test(new this["overriden-external-method-with-same-stable-name-method"].Baz());
|
||||
return test(new this["overriden_external_method_with_same_stable_name_method"].Baz());
|
||||
}
|
||||
|
||||
function test(foo) {
|
||||
|
||||
Reference in New Issue
Block a user