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

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

Issue 1155693004: Fix NPE in building element model when part URI could not be resolved (Closed) Base URL: https://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 531b82590becb76b935fbc05ae7919a60c6e755e..e70d9f769391cbe16661799781fcb71077ce31ce 100644
--- a/pkg/analyzer/test/src/task/dart_test.dart
+++ b/pkg/analyzer/test/src/task/dart_test.dart
@@ -925,6 +925,16 @@ part 'part.dart';
_assertErrorsWithCodes([CompileTimeErrorCode.PART_OF_NON_PART]);
}
+ test_perform_invalidUri_part() {
+ _performBuildTask({
+ '/lib.dart': '''
+library lib;
+part '//////////';
+'''
+ });
+ expect(libraryElement.parts, isEmpty);
+ }
+
test_perform_isLaunchable_inDefiningUnit() {
_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