| Index: pkg/analysis_server/test/services/correction/fix_test.dart
|
| diff --git a/pkg/analysis_server/test/services/correction/fix_test.dart b/pkg/analysis_server/test/services/correction/fix_test.dart
|
| index b0592797e9817c9d79a68aa5b647258ccee42969..d7935399f8d8b578fbe5b7c35aee4abdc6445850 100644
|
| --- a/pkg/analysis_server/test/services/correction/fix_test.dart
|
| +++ b/pkg/analysis_server/test/services/correction/fix_test.dart
|
| @@ -3460,7 +3460,35 @@ main() {
|
| ''');
|
| }
|
|
|
| - test_importLibraryShow() async {
|
| + test_importLibraryShow_project() async {
|
| + testFile = '/project/bin/test.dart';
|
| + addSource(
|
| + '/project/bin/lib.dart',
|
| + '''
|
| +class A {}
|
| +class B {}
|
| +''');
|
| + resolveTestUnit('''
|
| +import 'lib.dart' show A;
|
| +main() {
|
| + A a;
|
| + B b;
|
| +}
|
| +''');
|
| + performAllAnalysisTasks();
|
| + await assertNoFix(DartFixKind.IMPORT_LIBRARY_PROJECT);
|
| + await assertHasFix(
|
| + DartFixKind.IMPORT_LIBRARY_SHOW,
|
| + '''
|
| +import 'lib.dart' show A, B;
|
| +main() {
|
| + A a;
|
| + B b;
|
| +}
|
| +''');
|
| + }
|
| +
|
| + test_importLibraryShow_sdk() async {
|
| resolveTestUnit('''
|
| import 'dart:async' show Stream;
|
| main() {
|
| @@ -3468,6 +3496,7 @@ main() {
|
| Future f = null;
|
| }
|
| ''');
|
| + await assertNoFix(DartFixKind.IMPORT_LIBRARY_SDK);
|
| await assertHasFix(
|
| DartFixKind.IMPORT_LIBRARY_SHOW,
|
| '''
|
|
|