| Index: pkg/analysis_server/test/edit/organize_directives_test.dart
|
| diff --git a/pkg/analysis_server/test/edit/organize_directives_test.dart b/pkg/analysis_server/test/edit/organize_directives_test.dart
|
| index deb4ed9a42a9e398895eaccb0fab189ecf611532..821e4a4da9564c10d8b7e4a95ec728cf3164fb44 100644
|
| --- a/pkg/analysis_server/test/edit/organize_directives_test.dart
|
| +++ b/pkg/analysis_server/test/edit/organize_directives_test.dart
|
| @@ -65,6 +65,28 @@ main() {}
|
| response, isResponseFailure('0', RequestErrorCode.FILE_NOT_ANALYZED));
|
| }
|
|
|
| + Future test_OK_remove_duplicateImports_withSamePrefix() {
|
| + addTestFile('''
|
| +library lib;
|
| +
|
| +import 'dart:async' as async;
|
| +import 'dart:async' as async;
|
| +
|
| +main() {
|
| + async.Future f;
|
| +}
|
| +''');
|
| + return _assertOrganized(r'''
|
| +library lib;
|
| +
|
| +import 'dart:async' as async;
|
| +
|
| +main() {
|
| + async.Future f;
|
| +}
|
| +''');
|
| + }
|
| +
|
| Future test_OK_remove_unresolvedDirectives() {
|
| addFile('$testFolder/existing_part1.dart', 'part of lib;');
|
| addFile('$testFolder/existing_part2.dart', 'part of lib;');
|
|
|