Skip to content

Commit 4c6b9b6

Browse files
committed
JS: mute some tests with extension functions in external declarations
1 parent fcffd19 commit 4c6b9b6

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/BoxJsTestGenerated.java

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5957,7 +5957,13 @@ public void testPassExtLambdaFromNative() throws Exception {
59575957
@TestMetadata("passExtLambdaToNative.kt")
59585958
public void testPassExtLambdaToNative() throws Exception {
59595959
String fileName = KotlinTestUtils.navigationMetadata("js/js.translator/testData/box/native/passExtLambdaToNative.kt");
5960-
doTest(fileName);
5960+
try {
5961+
doTest(fileName);
5962+
}
5963+
catch (Throwable ignore) {
5964+
return;
5965+
}
5966+
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
59615967
}
59625968

59635969
@TestMetadata("passMemberOrExtFromNative.kt")
@@ -5969,7 +5975,13 @@ public void testPassMemberOrExtFromNative() throws Exception {
59695975
@TestMetadata("passMemberOrExtToNative.kt")
59705976
public void testPassMemberOrExtToNative() throws Exception {
59715977
String fileName = KotlinTestUtils.navigationMetadata("js/js.translator/testData/box/native/passMemberOrExtToNative.kt");
5972-
doTest(fileName);
5978+
try {
5979+
doTest(fileName);
5980+
}
5981+
catch (Throwable ignore) {
5982+
return;
5983+
}
5984+
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
59735985
}
59745986

59755987
@TestMetadata("passTopLevelFunctionFromNative.kt")

js/js.translator/testData/box/native/passExtLambdaToNative.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// TODO: Unmute when extension functions are supported in external declarations.
2+
// IGNORE_BACKEND: JS
3+
14
package foo
25

36
external class A(v: String) {

js/js.translator/testData/box/native/passMemberOrExtToNative.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// TODO: Unmute when extension functions are supported in external declarations.
2+
// IGNORE_BACKEND: JS
3+
14
package foo
25

36
open class A(val v: String) {

0 commit comments

Comments
 (0)