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

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

Issue 2131303002: Validate only private sources, display statistics. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 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 | « pkg/analyzer/lib/src/generated/engine.dart ('k') | 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 83a9a3d6e5efc1f310646b7d4593b5788f7bdb83..2ec73ef24439d17e96e4cf5c4821faafd4476335 100644
--- a/pkg/analyzer/test/src/context/context_test.dart
+++ b/pkg/analyzer/test/src/context/context_test.dart
@@ -2561,24 +2561,13 @@ int a = 0;''');
* Perform analysis tasks up to 512 times and assert that it was enough.
*/
void _analyzeAll_assertFinished([int maxIterations = 512]) {
- bool finishedAnalyzing = false;
for (int i = 0; i < maxIterations; i++) {
List<ChangeNotice> notice = context.performAnalysisTask().changeNotices;
if (notice == null) {
- finishedAnalyzing = true;
- bool inconsistent = context.validateCacheConsistency();
- if (!inconsistent) {
- return;
- }
+ return;
}
}
- if (finishedAnalyzing) {
- fail(
- "performAnalysisTask failed to finish analyzing all sources after $maxIterations iterations");
- } else {
- fail(
- "performAnalysisTask failed to terminate after analyzing all sources");
- }
+ fail("performAnalysisTask failed to terminate after analyzing all sources");
}
void _assertNoExceptions() {
« no previous file with comments | « pkg/analyzer/lib/src/generated/engine.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698