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

Unified Diff: pkg/analyzer/test/src/context/context_test.dart

Issue 1854863002: Issue 26096. Explicitly compute the result that ensures that directives are resolved in units. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fix for a review comment. Created 4 years, 9 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/context/context_test.dart
diff --git a/pkg/analyzer/test/src/context/context_test.dart b/pkg/analyzer/test/src/context/context_test.dart
index b2e1f0493d69518eaa94363a97cbbbadfc6ecb5e..e19a173777f828651526ed98aaf01fe3d25595ff 100644
--- a/pkg/analyzer/test/src/context/context_test.dart
+++ b/pkg/analyzer/test/src/context/context_test.dart
@@ -1931,14 +1931,14 @@ library expectedToFindSemicolon
LibrarySpecificUnit unitA = new LibrarySpecificUnit(sourceA, sourceA);
for (int i = 0; i < 10000; i++) {
context.performAnalysisTask();
- if (context.getResult(unitA, RESOLVED_UNIT2) != null) {
+ if (context.getResult(unitA, RESOLVED_UNIT3) != null) {
break;
}
}
// Update the source.
// This should invalidate all the results and also reset the driver.
context.setContents(sourceA, "library semicolonWasAdded;");
- expect(context.getResult(unitA, RESOLVED_UNIT2), isNull);
+ expect(context.getResult(unitA, RESOLVED_UNIT3), isNull);
expect(analysisDriver.currentWorkOrder, isNull);
// Continue analysis.
_analyzeAll_assertFinished();
@@ -2130,6 +2130,7 @@ class ClassTwo {
entry.setState(RESOLVED_UNIT9, CacheState.FLUSHED);
entry.setState(RESOLVED_UNIT10, CacheState.FLUSHED);
entry.setState(RESOLVED_UNIT11, CacheState.FLUSHED);
+ entry.setState(RESOLVED_UNIT12, CacheState.FLUSHED);
entry.setState(RESOLVED_UNIT, CacheState.FLUSHED);
context.resolveCompilationUnit2(source, source);

Powered by Google App Engine
This is Rietveld 408576698