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 d20b9b29d9eed60b65154c94bd8cc7365352933c..f043d2a904798735b5e257e17216b68d21d65de8 100644 |
--- a/pkg/analyzer/test/src/task/dart_test.dart |
+++ b/pkg/analyzer/test/src/task/dart_test.dart |
@@ -870,8 +870,37 @@ part of my_lib; |
part of my_lib; |
''' |
}); |
- _assertErrorsWithCodes( |
- [ResolverErrorCode.MISSING_LIBRARY_DIRECTIVE_WITH_PART]); |
+ if (context.analysisOptions.enableUriInPartOf) { |
+ // TODO(28522) |
+ // Should report that names are wrong. |
+ } else { |
+ _assertErrorsWithCodes( |
+ [ResolverErrorCode.MISSING_LIBRARY_DIRECTIVE_WITH_PART]); |
+ AnalysisError error = errorListener.errors[0]; |
+ } |
+ } |
+ |
+ test_perform_error_missingLibraryDirectiveWithPart_noCommon() { |
+ _performBuildTask({ |
+ '/lib.dart': ''' |
+part 'partA.dart'; |
+part 'partB.dart'; |
+''', |
+ '/partA.dart': ''' |
+part of libA; |
+ ''', |
+ '/partB.dart': ''' |
+part of libB; |
+''' |
+ }); |
+ if (context.analysisOptions.enableUriInPartOf) { |
+ // TODO(28522) |
+ // Should report that names are wrong. |
+ } else { |
+ _assertErrorsWithCodes( |
+ [ResolverErrorCode.MISSING_LIBRARY_DIRECTIVE_WITH_PART]); |
+ AnalysisError error = errorListener.errors[0]; |
+ } |
} |
test_perform_error_partDoesNotExist() { |