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:
Nikolay Krasko
2016-10-25 18:05:23 +03:00
parent 08d628537c
commit e053b77ede
2 changed files with 27 additions and 0 deletions
@@ -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");