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

Unified Diff: pkg/analyzer/test/src/task/dart_test.dart

Issue 1160543003: Ignore not existing parts. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 7 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/lib/src/task/dart.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/src/task/dart_test.dart
diff --git a/pkg/analyzer/test/src/task/dart_test.dart b/pkg/analyzer/test/src/task/dart_test.dart
index e70d9f769391cbe16661799781fcb71077ce31ce..130cf16e58a957020460dd01bd9741ec184d549d 100644
--- a/pkg/analyzer/test/src/task/dart_test.dart
+++ b/pkg/analyzer/test/src/task/dart_test.dart
@@ -899,6 +899,17 @@ part of libB;
expect(error.getProperty(ErrorProperty.PARTS_LIBRARY_NAME), isNull);
}
+ test_perform_error_partDoesNotExist() {
+ _performBuildTask({
+ '/lib.dart': '''
+library lib;
+part 'part.dart';
+'''
+ });
+ // we already report URI_DOES_NOT_EXIST, no need to report other errors
+ _assertErrorsWithCodes([]);
+ }
+
test_perform_error_partOfDifferentLibrary() {
_performBuildTask({
'/lib.dart': '''
« no previous file with comments | « pkg/analyzer/lib/src/task/dart.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698