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

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

Issue 2706123002: Remove AnalysisErrorWithProperties and ErrorProperty. (Closed)
Patch Set: Created 3 years, 10 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 75d799de04c0805851a87661ca82989ce2a352db..d20b9b29d9eed60b65154c94bd8cc7365352933c 100644
--- a/pkg/analyzer/test/src/task/dart_test.dart
+++ b/pkg/analyzer/test/src/task/dart_test.dart
@@ -857,7 +857,7 @@ part of 'lib.dart';
(libraryUnit.directives[2] as PartDirective).element, same(secondPart));
}
- test_perform_error_missingLibraryDirectiveWithPart_hasCommon() {
+ test_perform_error_missingLibraryDirectiveWithPart() {
_performBuildTask({
'/lib.dart': '''
part 'partA.dart';
@@ -872,27 +872,6 @@ part of my_lib;
});
_assertErrorsWithCodes(
[ResolverErrorCode.MISSING_LIBRARY_DIRECTIVE_WITH_PART]);
- AnalysisError error = errorListener.errors[0];
- expect(error.getProperty(ErrorProperty.PARTS_LIBRARY_NAME), 'my_lib');
- }
-
- test_perform_error_missingLibraryDirectiveWithPart_noCommon() {
- _performBuildTask({
- '/lib.dart': '''
-part 'partA.dart';
-part 'partB.dart';
-''',
- '/partA.dart': '''
-part of libA;
- ''',
- '/partB.dart': '''
-part of libB;
-'''
- });
- _assertErrorsWithCodes(
- [ResolverErrorCode.MISSING_LIBRARY_DIRECTIVE_WITH_PART]);
- AnalysisError error = errorListener.errors[0];
- expect(error.getProperty(ErrorProperty.PARTS_LIBRARY_NAME), isNull);
}
test_perform_error_partDoesNotExist() {
« 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