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

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

Issue 1217853003: Fix for the test. (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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 787c1bb0c227e1d7168d52daa553a937343f66cf..af84f24c6b3a9bbd4e66eecb185f0b5780f50e23 100644
--- a/pkg/analyzer/test/src/context/context_test.dart
+++ b/pkg/analyzer/test/src/context/context_test.dart
@@ -1586,7 +1586,11 @@ void g() { f(null); }''');
_changeSource(source, "");
source.generateExceptionOnRead = true;
_analyzeAll_assertFinished();
- expect(source.readCount, 5);
+ if (AnalysisEngine.instance.limitInvalidationInTaskModel) {
+ expect(source.readCount, 5);
+ } else {
+ expect(source.readCount, 3);
+ }
}
void test_performAnalysisTask_missingPart() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698