[JS] Re-enable some stepping tests
This commit is contained in:
committed by
Space Team
parent
932e1a3c1d
commit
becbc06663
+4
-1
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
public val MASSERTIONS_ENABLED: Boolean = true
|
||||
@@ -47,3 +47,6 @@ fun box(): String {
|
||||
// test.kt:30 box
|
||||
|
||||
// EXPECTATIONS JS_IR
|
||||
// test.kt:17 box
|
||||
// test.kt:7 box
|
||||
// test.kt:30 box
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
fun box() {
|
||||
@@ -34,3 +34,8 @@ inline fun foo(f: () -> Unit) {
|
||||
// test.kt:12 box
|
||||
|
||||
// EXPECTATIONS JS_IR
|
||||
// test.kt:15 box
|
||||
// test.kt:6 box
|
||||
// test.kt:15 box
|
||||
// test.kt:10 box
|
||||
// test.kt:12 box
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
fun box() {
|
||||
@@ -36,3 +36,10 @@ fun nop() {}
|
||||
// test.kt:9 box
|
||||
|
||||
// EXPECTATIONS JS_IR
|
||||
// test.kt:12 box
|
||||
// test.kt:20 nop
|
||||
// test.kt:6 box
|
||||
// test.kt:20 nop
|
||||
// test.kt:17 box
|
||||
// test.kt:20 nop
|
||||
// test.kt:9 box
|
||||
|
||||
+2
-1
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
inline fun inlineFun(s: () -> Unit) {
|
||||
@@ -51,3 +51,4 @@ fun box() {
|
||||
// test.kt:24 box
|
||||
|
||||
// EXPECTATIONS JS_IR
|
||||
// test.kt:24 box
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
|
||||
// FILE: test.kt
|
||||
inline fun foo(stringMaker: () -> String = { "OK" }): String {
|
||||
return stringMaker()
|
||||
@@ -31,3 +31,8 @@ fun box(): String {
|
||||
// test.kt:17 box
|
||||
|
||||
// EXPECTATIONS JS_IR
|
||||
// test.kt:3 box
|
||||
// test.kt:4 box
|
||||
// test.kt:8 box
|
||||
// test.kt:11 box
|
||||
// test.kt:17 box
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
fun box() {
|
||||
@@ -23,3 +23,6 @@ inline fun lookAtMe(f: (String) -> Unit) {
|
||||
// test.kt:8 box
|
||||
|
||||
// EXPECTATIONS JS_IR
|
||||
// test.kt:11 box
|
||||
// test.kt:6 box
|
||||
// test.kt:8 box
|
||||
|
||||
+4
-1
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
fun box() {
|
||||
@@ -29,3 +29,6 @@ fun box() {
|
||||
// test.kt:12 box
|
||||
|
||||
// EXPECTATIONS JS_IR
|
||||
// test.kt:10 box
|
||||
// test.kt:8 box$bar
|
||||
// test.kt:12 box
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
fun box() {
|
||||
@@ -26,3 +26,6 @@ fun box() {
|
||||
// test.kt:10 box
|
||||
|
||||
// EXPECTATIONS JS_IR
|
||||
// test.kt:8 box
|
||||
// test.kt:6 box$bar
|
||||
// test.kt:10 box
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
fun box() {
|
||||
@@ -22,3 +22,7 @@ inline fun lookAtMe(f: () -> Int) {
|
||||
// test.kt:8 box
|
||||
|
||||
// EXPECTATIONS JS_IR
|
||||
// test.kt:11 box
|
||||
// test.kt:6 box
|
||||
// test.kt:12 box
|
||||
// test.kt:8 box
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
inline fun ifoo(ok: String = "OK"): String {
|
||||
@@ -26,3 +26,6 @@ fun box(): String {
|
||||
// test.kt:14 box
|
||||
|
||||
// EXPECTATIONS JS_IR
|
||||
// test.kt:5 box
|
||||
// test.kt:14 box
|
||||
// test.kt:8 ifoo2
|
||||
|
||||
+2
-1
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
@@ -22,3 +22,4 @@ fun box() {
|
||||
// test.kt:13 box
|
||||
|
||||
// EXPECTATIONS JS_IR
|
||||
// test.kt:13 box
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
|
||||
// WITH_STDLIB
|
||||
// FILE: test.kt
|
||||
suspend fun foo(block: suspend Long.() -> String): String {
|
||||
@@ -23,3 +23,10 @@ suspend fun box() {
|
||||
// test.kt:12 box
|
||||
|
||||
// EXPECTATIONS JS_IR
|
||||
// test.kt:9 doResume
|
||||
// test.kt:9 box$slambda
|
||||
// test.kt:9 doResume
|
||||
// test.kt:5 foo
|
||||
// test.kt:5 foo
|
||||
// test.kt:10 doResume
|
||||
// test.kt:12 doResume
|
||||
|
||||
+12
-1
@@ -1,5 +1,5 @@
|
||||
// FILE: test.kt
|
||||
// DONT_TARGET_EXACT_BACKEND: JS_IR (KT-54283)
|
||||
|
||||
fun foo() {
|
||||
try {
|
||||
mightThrow()
|
||||
@@ -110,35 +110,46 @@ fun box() {
|
||||
// test.kt:41 box
|
||||
// test.kt:5 foo
|
||||
// test.kt:28 mightThrow
|
||||
// test.kt:29 mightThrow
|
||||
// test.kt:11 foo
|
||||
// test.kt:32 mightThrow2
|
||||
// test.kt:33 mightThrow2
|
||||
// test.kt:10 foo
|
||||
// test.kt:17 foo
|
||||
// test.kt:36 mightThrow3
|
||||
// test.kt:37 mightThrow3
|
||||
// test.kt:16 foo
|
||||
// test.kt:21 foo
|
||||
// test.kt:42 box
|
||||
// test.kt:43 box
|
||||
// test.kt:5 foo
|
||||
// test.kt:28 mightThrow
|
||||
// test.kt:29 mightThrow
|
||||
// test.kt:11 foo
|
||||
// test.kt:32 mightThrow2
|
||||
// test.kt:33 mightThrow2
|
||||
// test.kt:10 foo
|
||||
// test.kt:17 foo
|
||||
// test.kt:36 mightThrow3
|
||||
// test.kt:36 mightThrow3
|
||||
// test.kt:18 foo
|
||||
// test.kt:19 foo
|
||||
// test.kt:44 box
|
||||
// test.kt:45 box
|
||||
// test.kt:5 foo
|
||||
// test.kt:28 mightThrow
|
||||
// test.kt:29 mightThrow
|
||||
// test.kt:11 foo
|
||||
// test.kt:32 mightThrow2
|
||||
// test.kt:32 mightThrow2
|
||||
// test.kt:12 foo
|
||||
// test.kt:13 foo
|
||||
// test.kt:46 box
|
||||
// test.kt:47 box
|
||||
// test.kt:5 foo
|
||||
// test.kt:28 mightThrow
|
||||
// test.kt:28 mightThrow
|
||||
// test.kt:6 foo
|
||||
// test.kt:6 foo
|
||||
// test.kt:7 foo
|
||||
// test.kt:48 box
|
||||
|
||||
+12
-1
@@ -1,4 +1,4 @@
|
||||
// DONT_TARGET_EXACT_BACKEND: JS_IR (KT-54283)
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
fun foo() {
|
||||
@@ -96,25 +96,36 @@ fun box() {
|
||||
// test.kt:34 box
|
||||
// test.kt:6 foo
|
||||
// test.kt:26 mightThrow
|
||||
// test.kt:27 mightThrow
|
||||
// test.kt:14 foo
|
||||
// test.kt:30 mightThrow2
|
||||
// test.kt:31 mightThrow2
|
||||
// test.kt:13 foo
|
||||
// test.kt:20 foo
|
||||
// test.kt:35 box
|
||||
// test.kt:36 box
|
||||
// test.kt:6 foo
|
||||
// test.kt:26 mightThrow
|
||||
// test.kt:27 mightThrow
|
||||
// test.kt:14 foo
|
||||
// test.kt:30 mightThrow2
|
||||
// test.kt:30 mightThrow2
|
||||
// test.kt:15 foo
|
||||
// test.kt:16 foo
|
||||
// test.kt:13 foo
|
||||
// test.kt:20 foo
|
||||
// test.kt:37 box
|
||||
// test.kt:38 box
|
||||
// test.kt:6 foo
|
||||
// test.kt:26 mightThrow
|
||||
// test.kt:26 mightThrow
|
||||
// test.kt:7 foo
|
||||
// test.kt:7 foo
|
||||
// test.kt:14 foo
|
||||
// test.kt:30 mightThrow2
|
||||
// test.kt:30 mightThrow2
|
||||
// test.kt:15 foo
|
||||
// test.kt:16 foo
|
||||
// test.kt:13 foo
|
||||
// test.kt:20 foo
|
||||
// test.kt:39 box
|
||||
|
||||
+12
@@ -487,6 +487,18 @@ public class IrJsSteppingTestGenerated extends AbstractIrJsSteppingTest {
|
||||
runTest("compiler/testData/debug/stepping/tryCatch.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("tryCatchExpression.kt")
|
||||
public void testTryCatchExpression() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/tryCatchExpression.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("tryCatchFinally.kt")
|
||||
public void testTryCatchFinally() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/tryCatchFinally.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("tryFinally.kt")
|
||||
public void testTryFinally() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user