| 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 3648e73680175fd11b47cb85a5ddec8bc075de71..b4a7c9db099f8fbe783a7b2fe81aee2b2159e311 100644
|
| --- a/pkg/analysis_server/test/services/correction/assist_test.dart
|
| +++ b/pkg/analysis_server/test/services/correction/assist_test.dart
|
| @@ -911,6 +911,23 @@ import 'dart:math';
|
| assertNoAssistAt('import ', AssistKind.IMPORT_ADD_SHOW);
|
| }
|
|
|
| + void test_importAddShow_OK_hasUnresolvedIdentifier() {
|
| + _indexTestUnit('''
|
| +import 'dart:math';
|
| +main(x) {
|
| + PI;
|
| + return x.foo();
|
| +}
|
| +''');
|
| + assertHasAssistAt('import ', AssistKind.IMPORT_ADD_SHOW, '''
|
| +import 'dart:math' show PI;
|
| +main(x) {
|
| + PI;
|
| + return x.foo();
|
| +}
|
| +''');
|
| + }
|
| +
|
| void test_importAddShow_OK_onDirective() {
|
| _indexTestUnit('''
|
| import 'dart:math';
|
|
|