| 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 d833738ee50c86151c2ca5b77d185caccb841560..9e33386efc5f7405bc9a2f13ba4bc4b408374f2a 100644
|
| --- a/pkg/analysis_server/test/services/correction/fix_test.dart
|
| +++ b/pkg/analysis_server/test/services/correction/fix_test.dart
|
| @@ -1846,6 +1846,21 @@ main() {
|
| ''');
|
| }
|
|
|
| + void test_importLibrarySdk_withType_AsExpression() {
|
| + _indexTestUnit('''
|
| +main(p) {
|
| + p as Future;
|
| +}
|
| +''');
|
| + assertHasFix(FixKind.IMPORT_LIBRARY_SDK, '''
|
| +import 'dart:async';
|
| +
|
| +main(p) {
|
| + p as Future;
|
| +}
|
| +''');
|
| + }
|
| +
|
| void test_importLibrarySdk_withType_invocationTarget() {
|
| _indexTestUnit('''
|
| main() {
|
| @@ -1861,6 +1876,21 @@ main() {
|
| ''');
|
| }
|
|
|
| + void test_importLibrarySdk_withType_IsExpression() {
|
| + _indexTestUnit('''
|
| +main(p) {
|
| + p is Future;
|
| +}
|
| +''');
|
| + assertHasFix(FixKind.IMPORT_LIBRARY_SDK, '''
|
| +import 'dart:async';
|
| +
|
| +main(p) {
|
| + p is Future;
|
| +}
|
| +''');
|
| + }
|
| +
|
| void test_importLibrarySdk_withType_typeAnnotation() {
|
| _indexTestUnit('''
|
| main() {
|
|
|