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() { |