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

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

Issue 1168743002: Reanalyze after creating a referenced part. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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
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 bd3ad5c753f35afd915d558f4555b568f48a0e55..4036ee2f1e26428930c9095736faf6385fa61035 100644
--- a/pkg/analyzer/test/src/task/dart_test.dart
+++ b/pkg/analyzer/test/src/task/dart_test.dart
@@ -981,7 +981,12 @@ library lib;
part 'no-such-file.dart';
'''
});
- expect(libraryElement.parts, isEmpty);
+ expect(libraryElement.parts, hasLength(1));
+ CompilationUnitElement part = libraryElement.parts[0];
+ expect(part, isNotNull);
+ expect(part.source, isNotNull);
+ expect(part.library, same(libraryElement));
+ expect(context.exists(part.source), isFalse);
}
test_perform_patchTopLevelAccessors() {
« pkg/analyzer/lib/src/task/driver.dart ('K') | « pkg/analyzer/test/src/context/context_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698