| Index: pkg/analysis_server/test/services/correction/sort_members_test.dart
|
| diff --git a/pkg/analysis_server/test/services/correction/sort_members_test.dart b/pkg/analysis_server/test/services/correction/sort_members_test.dart
|
| index 02db5b727ea5bde23e67e3c9d7bb2b09336218f7..96b7d1340897c7202ef655682a51aa0002f801c1 100644
|
| --- a/pkg/analysis_server/test/services/correction/sort_members_test.dart
|
| +++ b/pkg/analysis_server/test/services/correction/sort_members_test.dart
|
| @@ -479,6 +479,36 @@ class B {}
|
| ''');
|
| }
|
|
|
| + void test_unitMembers_enum() {
|
| + _parseTestUnit(r'''
|
| +enum C {x, y}
|
| +enum A {x, y}
|
| +enum B {x, y}
|
| +''');
|
| + // validate change
|
| + _assertSort(r'''
|
| +enum A {x, y}
|
| +enum B {x, y}
|
| +enum C {x, y}
|
| +''');
|
| + }
|
| +
|
| + void test_unitMembers_enumClass() {
|
| + _parseTestUnit(r'''
|
| +enum C {x, y}
|
| +class A {}
|
| +class D {}
|
| +enum B {x, y}
|
| +''');
|
| + // validate change
|
| + _assertSort(r'''
|
| +class A {}
|
| +enum B {x, y}
|
| +enum C {x, y}
|
| +class D {}
|
| +''');
|
| + }
|
| +
|
| void test_unitMembers_function() {
|
| _parseTestUnit(r'''
|
| fc() {}
|
|
|