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

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

Issue 2653683004: Stop using SDK summary bundle. Analyze dart:xxx as any other libraries. (Closed)
Patch Set: Restore optional SDK bundle. Created 3 years, 11 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
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 45552d6961b1b96bec48015ef503183d0324448d..30fc32eaa5e9f97416234f4f722eba339568e91d 100644
--- a/pkg/analyzer/test/src/dart/analysis/driver_test.dart
+++ b/pkg/analyzer/test/src/dart/analysis/driver_test.dart
@@ -68,6 +68,7 @@ class AnalysisDriverSchedulerTest {
List<AnalysisResult> allResults = [];
AnalysisDriver newDriver() {
+ sdk = new MockSdk(resourceProvider: provider);
AnalysisDriver driver = new AnalysisDriver(
scheduler,
logger,
@@ -1245,13 +1246,17 @@ import 'b.dart';
driver.addFile(c);
await driver.waitForIdle();
- expect(driver.knownFiles, unorderedEquals([a, b, c]));
+ expect(driver.knownFiles, contains(a));
+ expect(driver.knownFiles, contains(b));
+ expect(driver.knownFiles, contains(c));
// Remove a.dart and analyze.
// Both a.dart and b.dart are not known now.
driver.removeFile(a);
await driver.waitForIdle();
- expect(driver.knownFiles, unorderedEquals([c]));
+ expect(driver.knownFiles, isNot(contains(a)));
+ expect(driver.knownFiles, isNot(contains(b)));
+ expect(driver.knownFiles, contains(c));
}
test_knownFiles_beforeAnalysis() async {
@@ -1279,7 +1284,7 @@ import 'b.dart';
ParseResult parseResult = await driver.parseFile(p);
expect(parseResult, isNotNull);
- expect(driver.knownFiles, [p]);
+ expect(driver.knownFiles, contains(p));
}
test_parseFile_shouldRefresh() async {
« no previous file with comments | « pkg/analyzer/lib/src/dart/analysis/file_state.dart ('k') | pkg/analyzer/test/src/dart/analysis/file_state_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698