Add test for JS source maps for literals
This commit is contained in:
@@ -60,6 +60,12 @@ public class JsLineNumberTestGenerated extends AbstractJsLineNumberTest {
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("literals.kt")
|
||||
public void testLiterals() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("js/js.translator/testData/lineNumbers/literals.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("multipleReferences.kt")
|
||||
public void testMultipleReferences() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("js/js.translator/testData/lineNumbers/multipleReferences.kt");
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
class A {
|
||||
fun box() {
|
||||
bar(
|
||||
this,
|
||||
null,
|
||||
0,
|
||||
1,
|
||||
"2",
|
||||
true,
|
||||
false
|
||||
)
|
||||
|
||||
bar(
|
||||
true,
|
||||
false,
|
||||
0,
|
||||
1,
|
||||
"2",
|
||||
this,
|
||||
null
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
fun bar(vararg x: Any?) {
|
||||
println(x)
|
||||
}
|
||||
|
||||
// LINES: 3 4 5 6 7 8 9 10 13 14 15 16 17 18 19 20 * 26
|
||||
Reference in New Issue
Block a user