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

Unified Diff: pkg/analyzer/test/src/dart/analysis/driver_test.dart

Issue 2579763003: If there is a changed file, hasFilesToAnalyze is true. (Closed)
Patch Set: Created 4 years 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/dart/analysis/driver.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/dart/analysis/driver_test.dart
diff --git a/pkg/analyzer/test/src/dart/analysis/driver_test.dart b/pkg/analyzer/test/src/dart/analysis/driver_test.dart
index 65c4f8e21530cce244fff8132eb2a24a667c3fc8..46c17437c5cb6c8d1d6fd2d5c7b8b65e43f75e60 100644
--- a/pkg/analyzer/test/src/dart/analysis/driver_test.dart
+++ b/pkg/analyzer/test/src/dart/analysis/driver_test.dart
@@ -998,6 +998,12 @@ main() {
await future;
expect(driver.hasFilesToAnalyze, isFalse);
+ // Change a file, even if not added, it still might affect analysis.
+ driver.changeFile(_p('/not/added.dart'));
+ expect(driver.hasFilesToAnalyze, isTrue);
+ await _waitForIdle();
+ expect(driver.hasFilesToAnalyze, isFalse);
+
// Request of referenced names is not analysis of a file.
driver.getFilesReferencingName('X');
expect(driver.hasFilesToAnalyze, isFalse);
« no previous file with comments | « pkg/analyzer/lib/src/dart/analysis/driver.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698