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

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

Issue 2996383002: Remove support for watching changes to the set of files known to a driver (Closed)
Patch Set: Created 3 years, 4 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/dart/analysis/file_state.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/file_state_test.dart
diff --git a/pkg/analyzer/test/src/dart/analysis/file_state_test.dart b/pkg/analyzer/test/src/dart/analysis/file_state_test.dart
index c58b53b8f949466fbfa3820448bcb11f58f8f75c..4b98ee40666fefef060bc3630d0ea3b4f861f048 100644
--- a/pkg/analyzer/test/src/dart/analysis/file_state_test.dart
+++ b/pkg/analyzer/test/src/dart/analysis/file_state_test.dart
@@ -2,7 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-import 'dart:async';
import 'dart:convert';
import 'dart:typed_data';
@@ -505,43 +504,6 @@ part 'not-a2.dart';
expect(fileSystemState.hasUri(generatedPath), isTrue);
}
- test_knownFilesSetChanges() async {
- fileSystemState.test.knownFilesDelay = new Duration(milliseconds: 5);
-
- String a = _p('/test/lib/a.dart');
- String b = _p('/test/lib/b.dart');
- String c = _p('/test/lib/c.dart');
- provider.newFile(a, r'''
-import 'b.dart';
-''');
- provider.newFile(b, '');
- provider.newFile(c, '');
-
- Stream<KnownFilesSetChange> broadcastEvents =
- fileSystemState.knownFilesSetChanges.asBroadcastStream();
-
- FileState file = fileSystemState.getFileForPath(a);
- {
- KnownFilesSetChange event = await broadcastEvents.first;
- expect(event.added, contains(a));
- expect(event.added, contains(b));
- expect(event.removed, isEmpty);
- }
-
- // Update a.dart to import c.dart and refresh.
- // So, c.dart should be reported as added in the next change event.
- provider.newFile(a, r'''
-import 'b.dart';
-import 'c.dart';
-''');
- file.refresh();
- {
- KnownFilesSetChange event = await broadcastEvents.first;
- expect(event.added, contains(c));
- expect(event.removed, isEmpty);
- }
- }
-
test_referencedNames() {
String path = _p('/aaa/lib/a.dart');
provider.newFile(path, r'''
« no previous file with comments | « pkg/analyzer/lib/src/dart/analysis/file_state.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698