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

Unified Diff: pkg/front_end/test/src/incremental/file_state_test.dart

Issue 2933153002: Report unused files to watch. (Closed)
Patch Set: Created 3 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 | « pkg/front_end/test/incremental_kernel_generator_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/test/src/incremental/file_state_test.dart
diff --git a/pkg/front_end/test/src/incremental/file_state_test.dart b/pkg/front_end/test/src/incremental/file_state_test.dart
index aa927f32f030360fb31b8f5478f7fc9a2934e4c5..9e9f391cdbb9f3246d7f021711017fc15b8ad3d5 100644
--- a/pkg/front_end/test/src/incremental/file_state_test.dart
+++ b/pkg/front_end/test/src/incremental/file_state_test.dart
@@ -163,7 +163,7 @@ import "d.dart";
expect(fsState.fileUris, contains(d));
// No changes after GC.
- fsState.gc(e);
+ expect(fsState.gc(e), isEmpty);
expect(fsState.fileUris, contains(e));
expect(fsState.fileUris, contains(a));
expect(fsState.fileUris, contains(b));
@@ -178,7 +178,10 @@ import "d.dart";
import "d.dart";
''');
await eFile.refresh();
- fsState.gc(e);
+ {
+ var gcFiles = fsState.gc(e);
+ expect(gcFiles.map((file) => file.uri), unorderedEquals([a, c]));
+ }
expect(fsState.fileUris, contains(e));
expect(fsState.fileUris, isNot(contains(a)));
expect(fsState.fileUris, contains(b));
« no previous file with comments | « pkg/front_end/test/incremental_kernel_generator_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698