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

Unified Diff: pkg/analysis_server/test/integration/search/find_top_level_declarations_test.dart

Issue 2946313003: Restore partial analysis of analysis options files (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
Index: pkg/analysis_server/test/integration/search/find_top_level_declarations_test.dart
diff --git a/pkg/analysis_server/test/integration/search/find_top_level_declarations_test.dart b/pkg/analysis_server/test/integration/search/find_top_level_declarations_test.dart
index dd2d333474ed766bdfd651ce2ab6c91dda121116..66352f892d2c55a14cb38d57980bfdfe33e6a965 100644
--- a/pkg/analysis_server/test/integration/search/find_top_level_declarations_test.dart
+++ b/pkg/analysis_server/test/integration/search/find_top_level_declarations_test.dart
@@ -43,10 +43,14 @@ class Foo {
expect(searchParams.isLast, isTrue);
expect(searchParams.results, isNotEmpty);
- SearchResult result = searchParams.results.first;
- expect(result.location.file, pathname);
- expect(result.isPotential, isFalse);
- expect(result.kind.name, SearchResultKind.DECLARATION.name);
- expect(result.path.first.name, 'qux');
+ for (SearchResult result in searchParams.results) {
+ if (result.location.file == pathname) {
+ expect(result.isPotential, isFalse);
+ expect(result.kind.name, SearchResultKind.DECLARATION.name);
+ expect(result.path.first.name, 'qux');
+ return;
+ }
+ }
+ fail('No result for $pathname');
}
}

Powered by Google App Engine
This is Rietveld 408576698