[JS] Fix JPS tests with js part

This commit is contained in:
Ilya Goncharov
2023-06-12 17:03:26 +02:00
committed by Space Team
parent a0f86d8dd6
commit 8c014baa28
7 changed files with 4 additions and 61 deletions
@@ -1,7 +1,4 @@
c [sourceSetHolder]
pJvm [compilationAndSourceSetHolder, jvm]
pJvm -> c [include]
pJs [compilationAndSourceSetHolder, js]
pJs -> c [include]
pJvm -> c [include]
@@ -1,5 +1,3 @@
use @Optional in JS
remove @Optional from JS
use @Optional in JVM
remove @Optional from JVM
add another @Optional in Common module
@@ -1,31 +1,6 @@
================ Step #1 use @Optional in JS =================
================ Step #1 use @Optional in JVM =================
Building c
Building pJs
Compiling files:
pJs/src/c.kt
End of files
Exit code: ABORT
------------------------------------------
COMPILATION FAILED
Declaration annotated with '@OptionalExpectation' can only be used in common module sources
================ Step #2 remove @Optional from JS =================
Building c
Building pJs
Exit code: NOTHING_DONE
------------------------------------------
Building pJvm
Exit code: NOTHING_DONE
------------------------------------------
================ Step #3 use @Optional in JVM =================
Building c
Building pJs
Exit code: NOTHING_DONE
------------------------------------------
Building pJvm
Compiling files:
pJvm/src/c.kt
@@ -33,27 +8,17 @@ End of files
Exit code: ABORT
------------------------------------------
COMPILATION FAILED
Declaration annotated with '@OptionalExpectation' can only be used in common module sources
================ Step #4 remove @Optional from JVM =================
================ Step #2 remove @Optional from JVM =================
Building c
Building pJs
Exit code: NOTHING_DONE
------------------------------------------
Building pJvm
Exit code: NOTHING_DONE
------------------------------------------
================ Step #5 add another @Optional in Common module =================
================ Step #3 add another @Optional in Common module =================
Building c
Building pJs
Compiling files:
c/src/b.kt
End of files
Exit code: OK
------------------------------------------
Building pJvm
Compiling files:
c/src/b.kt
@@ -1,3 +0,0 @@
// Should be an error: Declaration annotated with '@OptionalExpectation' can only be used in common module sources
@Optional("BarJs")
class BarJs
@@ -2,6 +2,3 @@ c [sourceSetHolder]
pJvm [compilationAndSourceSetHolder, jvm]
pJvm -> c [include]
pJs [compilationAndSourceSetHolder, js]
pJs -> c [include]
@@ -1,17 +1,6 @@
================ Step #1 =================
Building c
Building pJs
Cleaning output files:
out/production/pJs/pJs.js
out/production/pJs/pJs.meta.js
out/production/pJs/pJs/root-package.kjsm
End of files
Compiling files:
c/src/usage.kt
End of files
Exit code: OK
------------------------------------------
Building pJvm
Cleaning output files:
out/production/pJvm/META-INF/pJvm.kotlin_module