| Index: pkg/analyzer/test/generated/compile_time_error_code_test.dart
|
| diff --git a/pkg/analyzer/test/generated/compile_time_error_code_test.dart b/pkg/analyzer/test/generated/compile_time_error_code_test.dart
|
| index 7876d9da7f1dd5bfebbaecd20540bebab158a2f8..bc09e54f06e5c4b4e26f75e4652b1193dfd8a679 100644
|
| --- a/pkg/analyzer/test/generated/compile_time_error_code_test.dart
|
| +++ b/pkg/analyzer/test/generated/compile_time_error_code_test.dart
|
| @@ -6002,6 +6002,23 @@ f() sync* {
|
| verify([source]);
|
| }
|
|
|
| + test_deferredImportWithInvalidUri() async {
|
| + Source source = addSource(r'''
|
| +import '[invalid uri]' deferred as p;
|
| +main() {
|
| + p.loadLibrary();
|
| +}''');
|
| + await computeAnalysisResult(source);
|
| + if (enableNewAnalysisDriver) {
|
| + assertErrors(source, [CompileTimeErrorCode.URI_DOES_NOT_EXIST]);
|
| + } else {
|
| + assertErrors(source, [
|
| + CompileTimeErrorCode.URI_DOES_NOT_EXIST,
|
| + StaticWarningCode.UNDEFINED_IDENTIFIER
|
| + ]);
|
| + }
|
| + }
|
| +
|
| test_sharedDeferredPrefix() async {
|
| await resolveWithErrors(<String>[
|
| r'''
|
|
|