Index: pkg/analyzer/test/generated/incremental_resolver_test.dart |
diff --git a/pkg/analyzer/test/generated/incremental_resolver_test.dart b/pkg/analyzer/test/generated/incremental_resolver_test.dart |
index 50c51babc20bd9f2cf6d2daf400432185b14d1e8..18a45f63bdf4877412ea5f3dfa4d02aad756c255 100644 |
--- a/pkg/analyzer/test/generated/incremental_resolver_test.dart |
+++ b/pkg/analyzer/test/generated/incremental_resolver_test.dart |
@@ -4498,8 +4498,10 @@ f3() { |
expect(newUnit.element, isNot(same(oldUnitElement))); |
return; |
} |
- // The existing CompilationUnitElement should be updated. |
+ // The existing CompilationUnit[Element] should be updated. |
+ expect(newUnit, same(oldUnit)); |
expect(newUnit.element, same(oldUnitElement)); |
+ expect(analysisContext.parseCompilationUnit(source), same(oldUnit)); |
// The only expected pending task should return the same resolved |
// "newUnit", so all clients will get it using the usual way. |
AnalysisResult analysisResult = analysisContext.performAnalysisTask(); |