[JS IC TEST] Add test case about moving file between modules
This commit is contained in:
+5
@@ -40,6 +40,11 @@ public class InvalidationTestGenerated extends AbstractInvalidationTest {
|
|||||||
runTest("js/js.translator/testData/incremental/invalidation/fastPath2/");
|
runTest("js/js.translator/testData/incremental/invalidation/fastPath2/");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("moveFilesBetweenModules")
|
||||||
|
public void testMoveFilesBetweenModules() throws Exception {
|
||||||
|
runTest("js/js.translator/testData/incremental/invalidation/moveFilesBetweenModules/");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("moveInlineFunctionBetweenModules")
|
@TestMetadata("moveInlineFunctionBetweenModules")
|
||||||
public void testMoveInlineFunctionBetweenModules() throws Exception {
|
public void testMoveInlineFunctionBetweenModules() throws Exception {
|
||||||
runTest("js/js.translator/testData/incremental/invalidation/moveInlineFunctionBetweenModules/");
|
runTest("js/js.translator/testData/incremental/invalidation/moveInlineFunctionBetweenModules/");
|
||||||
|
|||||||
+2
@@ -0,0 +1,2 @@
|
|||||||
|
|
||||||
|
inline fun foo(a: Int) = a * 2
|
||||||
+2
@@ -0,0 +1,2 @@
|
|||||||
|
|
||||||
|
inline fun bar(b: Int) = b - 3
|
||||||
+2
@@ -0,0 +1,2 @@
|
|||||||
|
|
||||||
|
inline fun bar(b: Int) = b - 5
|
||||||
Vendored
+15
@@ -0,0 +1,15 @@
|
|||||||
|
STEP 0:
|
||||||
|
dependencies: stdlib
|
||||||
|
dirty: l11.kt, l12.kt
|
||||||
|
STEP 1:
|
||||||
|
dependencies: stdlib
|
||||||
|
modifications:
|
||||||
|
D : l12.kt
|
||||||
|
dirty:
|
||||||
|
|
||||||
|
STEP 2:
|
||||||
|
dependencies: stdlib
|
||||||
|
modifications:
|
||||||
|
U : l12_n.kt.2 -> l12_n.kt
|
||||||
|
dirty: l12_n.kt
|
||||||
|
|
||||||
+2
@@ -0,0 +1,2 @@
|
|||||||
|
|
||||||
|
inline fun qux(x: Int, y: Int) = foo(x) + bar(y)
|
||||||
+2
@@ -0,0 +1,2 @@
|
|||||||
|
|
||||||
|
inline fun bar(b: Int) = b - 4
|
||||||
Vendored
+15
@@ -0,0 +1,15 @@
|
|||||||
|
STEP 0:
|
||||||
|
dependencies: stdlib, lib1
|
||||||
|
dirty: l21.kt
|
||||||
|
|
||||||
|
STEP 1:
|
||||||
|
dependencies: stdlib, lib1
|
||||||
|
modifications:
|
||||||
|
U : l22.kt.1 -> l22.kt
|
||||||
|
dirty: l21.kt, l22.kt
|
||||||
|
|
||||||
|
STEP 2:
|
||||||
|
dependencies: stdlib, lib1
|
||||||
|
modifications:
|
||||||
|
D : l22.kt
|
||||||
|
dirty: l21.kt
|
||||||
+2
@@ -0,0 +1,2 @@
|
|||||||
|
|
||||||
|
inline fun dex(x: Int, y: Int) = qux(x * y, y - x)
|
||||||
Vendored
+11
@@ -0,0 +1,11 @@
|
|||||||
|
STEP 0:
|
||||||
|
dependencies: stdlib, lib1, lib2
|
||||||
|
dirty: l3.kt
|
||||||
|
|
||||||
|
STEP 1:
|
||||||
|
dependencies: stdlib, lib1, lib2
|
||||||
|
dirty: l3.kt
|
||||||
|
|
||||||
|
STEP 2:
|
||||||
|
dependencies: stdlib, lib1, lib2
|
||||||
|
dirty: l3.kt
|
||||||
+2
@@ -0,0 +1,2 @@
|
|||||||
|
|
||||||
|
fun box() = dex(4, 2)
|
||||||
Vendored
+11
@@ -0,0 +1,11 @@
|
|||||||
|
STEP 0:
|
||||||
|
dependencies: stdlib, lib1, lib2, lib3
|
||||||
|
dirty: m.kt
|
||||||
|
|
||||||
|
STEP 1:
|
||||||
|
dependencies: stdlib, lib1, lib2, lib3
|
||||||
|
dirty: m.kt
|
||||||
|
|
||||||
|
STEP 2:
|
||||||
|
dependencies: stdlib, lib1, lib2, lib3
|
||||||
|
dirty: m.kt
|
||||||
+10
@@ -0,0 +1,10 @@
|
|||||||
|
MODULES: lib1, lib2, lib3, main
|
||||||
|
|
||||||
|
STEP 0:
|
||||||
|
libs: lib1, lib2, lib3, main
|
||||||
|
|
||||||
|
STEP 1:
|
||||||
|
libs: lib1, lib2, lib3, main
|
||||||
|
|
||||||
|
STEP 2:
|
||||||
|
libs: lib1, lib2, lib3, main
|
||||||
Reference in New Issue
Block a user