[formatter] add tests for line indent after properties
^KT-42560
This commit is contained in:
+20
@@ -34,6 +34,16 @@ public class PerformanceTypingIndentationTestGenerated extends AbstractPerforman
|
||||
runTest("idea/testData/indentationOnNewline/AfterClassNameBeforeFun.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("AfterExtensionPropertyGetter.kt")
|
||||
public void testAfterExtensionPropertyGetter() throws Exception {
|
||||
runTest("idea/testData/indentationOnNewline/AfterExtensionPropertyGetter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("AfterExtensionPropertySetter.kt")
|
||||
public void testAfterExtensionPropertySetter() throws Exception {
|
||||
runTest("idea/testData/indentationOnNewline/AfterExtensionPropertySetter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("AfterFinally.kt")
|
||||
public void testAfterFinally() throws Exception {
|
||||
runTest("idea/testData/indentationOnNewline/AfterFinally.kt");
|
||||
@@ -44,6 +54,16 @@ public class PerformanceTypingIndentationTestGenerated extends AbstractPerforman
|
||||
runTest("idea/testData/indentationOnNewline/AfterImport.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("AfterPropertyGetter.kt")
|
||||
public void testAfterPropertyGetter() throws Exception {
|
||||
runTest("idea/testData/indentationOnNewline/AfterPropertyGetter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("AfterPropertySetter.kt")
|
||||
public void testAfterPropertySetter() throws Exception {
|
||||
runTest("idea/testData/indentationOnNewline/AfterPropertySetter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("AfterTry.kt")
|
||||
public void testAfterTry() throws Exception {
|
||||
runTest("idea/testData/indentationOnNewline/AfterTry.kt");
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
var String.foo: Int
|
||||
get() = length
|
||||
<caret>
|
||||
|
||||
// WITHOUT_CUSTOM_LINE_INDENT_PROVIDER
|
||||
@@ -0,0 +1,4 @@
|
||||
var String.foo: Int
|
||||
get() = length<caret>
|
||||
|
||||
// WITHOUT_CUSTOM_LINE_INDENT_PROVIDER
|
||||
@@ -0,0 +1,5 @@
|
||||
var String.foo: Int
|
||||
set(value) {}
|
||||
<caret>
|
||||
|
||||
// WITHOUT_CUSTOM_LINE_INDENT_PROVIDER
|
||||
@@ -0,0 +1,4 @@
|
||||
var String.foo: Int
|
||||
set(value) {}<caret>
|
||||
|
||||
// WITHOUT_CUSTOM_LINE_INDENT_PROVIDER
|
||||
@@ -0,0 +1,5 @@
|
||||
var foo: Int
|
||||
get() = length
|
||||
<caret>
|
||||
|
||||
// WITHOUT_CUSTOM_LINE_INDENT_PROVIDER
|
||||
@@ -0,0 +1,4 @@
|
||||
var foo: Int
|
||||
get() = length<caret>
|
||||
|
||||
// WITHOUT_CUSTOM_LINE_INDENT_PROVIDER
|
||||
@@ -0,0 +1,5 @@
|
||||
var foo: Int
|
||||
set(value) {}
|
||||
<caret>
|
||||
|
||||
// WITHOUT_CUSTOM_LINE_INDENT_PROVIDER
|
||||
@@ -0,0 +1,4 @@
|
||||
var foo: Int
|
||||
set(value) {}<caret>
|
||||
|
||||
// WITHOUT_CUSTOM_LINE_INDENT_PROVIDER
|
||||
+20
@@ -36,6 +36,16 @@ public class TypingIndentationTestBaseGenerated extends AbstractTypingIndentatio
|
||||
runTest("idea/testData/indentationOnNewline/AfterClassNameBeforeFun.after.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("AfterExtensionPropertyGetter.after.kt")
|
||||
public void testAfterExtensionPropertyGetter() throws Exception {
|
||||
runTest("idea/testData/indentationOnNewline/AfterExtensionPropertyGetter.after.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("AfterExtensionPropertySetter.after.kt")
|
||||
public void testAfterExtensionPropertySetter() throws Exception {
|
||||
runTest("idea/testData/indentationOnNewline/AfterExtensionPropertySetter.after.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("AfterFinally.after.kt")
|
||||
public void testAfterFinally() throws Exception {
|
||||
runTest("idea/testData/indentationOnNewline/AfterFinally.after.kt");
|
||||
@@ -46,6 +56,16 @@ public class TypingIndentationTestBaseGenerated extends AbstractTypingIndentatio
|
||||
runTest("idea/testData/indentationOnNewline/AfterImport.after.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("AfterPropertyGetter.after.kt")
|
||||
public void testAfterPropertyGetter() throws Exception {
|
||||
runTest("idea/testData/indentationOnNewline/AfterPropertyGetter.after.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("AfterPropertySetter.after.kt")
|
||||
public void testAfterPropertySetter() throws Exception {
|
||||
runTest("idea/testData/indentationOnNewline/AfterPropertySetter.after.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("AfterTry.after.kt")
|
||||
public void testAfterTry() throws Exception {
|
||||
runTest("idea/testData/indentationOnNewline/AfterTry.after.kt");
|
||||
|
||||
Reference in New Issue
Block a user