Add test for JS source maps for literals

This commit is contained in:
Alexey Andreev
2017-05-15 11:58:41 +03:00
parent e9a2c8c0f1
commit 6f8ccfb80d
2 changed files with 35 additions and 0 deletions
@@ -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");
+29
View File
@@ -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