| Index: pkg/analysis_server/test/services/correction/organize_directives_test.dart
|
| diff --git a/pkg/analysis_server/test/services/correction/organize_directives_test.dart b/pkg/analysis_server/test/services/correction/organize_directives_test.dart
|
| index 8f6a9e2c3d4dc164386e0a4a5d119699c6645185..d9423a4463a558054d17547f5385e16b95345056 100644
|
| --- a/pkg/analysis_server/test/services/correction/organize_directives_test.dart
|
| +++ b/pkg/analysis_server/test/services/correction/organize_directives_test.dart
|
| @@ -94,6 +94,30 @@ main() {
|
| removeUnused: true);
|
| }
|
|
|
| + void test_remove_unusedImports2() {
|
| + _computeUnitAndErrors(r'''
|
| +import 'dart:async';
|
| +import 'dart:math';
|
| +
|
| +class A {}
|
| +
|
| +main() {
|
| + Future f;
|
| +}''');
|
| + // validate change
|
| + _assertOrganize(
|
| + r'''
|
| +import 'dart:async';
|
| +
|
| +class A {}
|
| +
|
| +main() {
|
| + Future f;
|
| +}''',
|
| + removeUnresolved: true,
|
| + removeUnused: true);
|
| + }
|
| +
|
| void test_sort() {
|
| _computeUnitAndErrors(r'''
|
| library lib;
|
|
|