Chromium Code Reviews| Index: pkg/analysis_server/test/services/correction/assist_test.dart |
| diff --git a/pkg/analysis_server/test/services/correction/assist_test.dart b/pkg/analysis_server/test/services/correction/assist_test.dart |
| index d3c11d0ddfd3e3c08d7d2994c5f8f8e3824436f0..316f0a5cf515ef19f7f0457a125561bbae27389b 100644 |
| --- a/pkg/analysis_server/test/services/correction/assist_test.dart |
| +++ b/pkg/analysis_server/test/services/correction/assist_test.dart |
| @@ -1089,6 +1089,32 @@ main(A a) { |
| assertNoAssistAt('isEmpty;', AssistKind.CONVERT_INTO_IS_NOT_EMPTY); |
| } |
| + void test_createFinalFieldsConstructor() { |
|
Brian Wilkerson
2015/03/15 23:43:22
What happens with the following test input:
class
|
| + resolveTestUnit(''' |
| +class A { |
| + final int a; |
| +// start |
| + final int b; |
| + final int c; |
| +// end |
| + final int d; |
| +} |
| +'''); |
| + _setStartEndSelection(); |
| + assertHasAssist(AssistKind.CREATE_FINAL_FIELD_CONSTRUCTOR, ''' |
| +class A { |
| + final int a; |
| +// start |
| + final int b; |
| + final int c; |
| +// end |
| + final int d; |
| + |
| + A(this.b, this.c); |
| +} |
| +'''); |
| + } |
| + |
| void test_exchangeBinaryExpressionArguments_OK_compare() { |
| Map<String, String> operatorMap = { |
| '<': '>', |