Test for "Code folding doesn't work in kotlin lambdas after some declatation" (KT-14411)
Fixed in previous commit #KT-14411 Fixed
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
val action2 = <fold text='{...}' expand='true'>{
|
||||
<fold text='start' expand='true'>//<editor-fold desc="start">
|
||||
foo()
|
||||
//</editor-fold"></fold>
|
||||
|
||||
foo()
|
||||
|
||||
<fold text='middle' expand='true'>//<editor-fold desc="middle">
|
||||
foo()
|
||||
//</editor-fold"></fold>
|
||||
|
||||
foo()
|
||||
|
||||
// At the end
|
||||
<fold text='end' expand='true'>//<editor-fold desc="end">
|
||||
foo()
|
||||
//</editor-fold"></fold>
|
||||
}</fold>
|
||||
|
||||
fun foo() {}
|
||||
|
||||
@@ -100,6 +100,12 @@ public class KotlinFoldingTestGenerated extends AbstractKotlinFoldingTest {
|
||||
doSettingsFoldingTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("customRegionsNotFullBlock.kt")
|
||||
public void testCustomRegionsNotFullBlock() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/folding/checkCollapse/customRegionsNotFullBlock.kt");
|
||||
doSettingsFoldingTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("functionLiteral.kt")
|
||||
public void testFunctionLiteral() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/folding/checkCollapse/functionLiteral.kt");
|
||||
|
||||
Reference in New Issue
Block a user