Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(327)

Unified Diff: pkg/analyzer/test/generated/compile_time_error_code_test.dart

Issue 1843473002: Sort analyzer sources (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Remove generated file and fix misplaced comments Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/test/generated/all_the_rest_test.dart ('k') | pkg/analyzer/test/generated/hint_code_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « pkg/analyzer/test/generated/all_the_rest_test.dart ('k') | pkg/analyzer/test/generated/hint_code_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698