| 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 6231930e2ffb86077ef562c2d01ddc1cb49c7eb3..d348b4bfc1b3ca5520ae1cf549cc9e61d8d9de70 100644
|
| --- a/pkg/analyzer/test/generated/compile_time_error_code_test.dart
|
| +++ b/pkg/analyzer/test/generated/compile_time_error_code_test.dart
|
| @@ -6045,6 +6045,21 @@ main() {
|
| assertErrors(source, [CompileTimeErrorCode.URI_DOES_NOT_EXIST]);
|
| }
|
|
|
| + void test_uriDoesNotExist_import_appears_after_deleting_target() {
|
| + Source test = addSource("import 'target.dart';");
|
| + Source target = addNamedSource("/target.dart", "");
|
| + computeLibrarySourceErrors(test);
|
| + assertErrors(test, [HintCode.UNUSED_IMPORT]);
|
| +
|
| + // Remove the overlay in the same way as AnalysisServer.
|
| + analysisContext2.setContents(target, null);
|
| + ChangeSet changeSet = new ChangeSet()..removedSource(target);
|
| + analysisContext2.applyChanges(changeSet);
|
| +
|
| + computeLibrarySourceErrors(test);
|
| + assertErrors(test, [CompileTimeErrorCode.URI_DOES_NOT_EXIST]);
|
| + }
|
| +
|
| void test_uriDoesNotExist_import_disappears_when_fixed() {
|
| Source source = addSource("import 'target.dart';");
|
| computeLibrarySourceErrors(source);
|
| @@ -6065,21 +6080,6 @@ main() {
|
| assertErrors(source, [HintCode.UNUSED_IMPORT]);
|
| }
|
|
|
| - void test_uriDoesNotExist_import_appears_after_deleting_target() {
|
| - Source test = addSource("import 'target.dart';");
|
| - Source target = addNamedSource("/target.dart", "");
|
| - computeLibrarySourceErrors(test);
|
| - assertErrors(test, [HintCode.UNUSED_IMPORT]);
|
| -
|
| - // Remove the overlay in the same way as AnalysisServer.
|
| - analysisContext2.setContents(target, null);
|
| - ChangeSet changeSet = new ChangeSet()..removedSource(target);
|
| - analysisContext2.applyChanges(changeSet);
|
| -
|
| - computeLibrarySourceErrors(test);
|
| - assertErrors(test, [CompileTimeErrorCode.URI_DOES_NOT_EXIST]);
|
| - }
|
| -
|
| void test_uriDoesNotExist_part() {
|
| Source source = addSource(r'''
|
| library lib;
|
|
|