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

Unified Diff: pkg/analysis_server/test/search/element_references_test.dart

Issue 1266923004: More fixes for failures on the Windows bot (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 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
Index: pkg/analysis_server/test/search/element_references_test.dart
diff --git a/pkg/analysis_server/test/search/element_references_test.dart b/pkg/analysis_server/test/search/element_references_test.dart
index dce6b8c96097f315b7257677eb84ac3ae2bddad2..1c74865f968a6bf930cbbf630157dec044f66717 100644
--- a/pkg/analysis_server/test/search/element_references_test.dart
+++ b/pkg/analysis_server/test/search/element_references_test.dart
@@ -11,10 +11,11 @@ import 'package:analysis_server/src/services/index/index.dart';
import 'package:test_reflective_loader/test_reflective_loader.dart';
import 'package:unittest/unittest.dart';
+import '../utils.dart';
import 'abstract_search_domain.dart';
main() {
- groupSep = ' | ';
+ initializeTestEnvironment();
defineReflectiveTests(ElementReferencesTest);
defineReflectiveTests(_NoSearchEngine);
}
@@ -453,7 +454,9 @@ class B {
''');
await findElementReferences('A {}', false);
assertHasResult(SearchResultKind.REFERENCE, 'A a = null;');
- expect(getPathString(result.path), '''
+ expect(
+ getPathString(result.path),
+ '''
LOCAL_VARIABLE a
CONSTRUCTOR named
CLASS B
@@ -473,7 +476,9 @@ class B {
''');
await findElementReferences('A {}', false);
assertHasResult(SearchResultKind.REFERENCE, 'A a = null;');
- expect(getPathString(result.path), '''
+ expect(
+ getPathString(result.path),
+ '''
LOCAL_VARIABLE a
CONSTRUCTOR
CLASS B
@@ -491,7 +496,9 @@ main() {
''');
await findElementReferences('A {}', false);
assertHasResult(SearchResultKind.REFERENCE, 'A a = null;');
- expect(getPathString(result.path), '''
+ expect(
+ getPathString(result.path),
+ '''
LOCAL_VARIABLE a
FUNCTION main
COMPILATION_UNIT test.dart
« no previous file with comments | « pkg/analysis_server/test/protocol_test.dart ('k') | pkg/analysis_server/test/search/member_declarations_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698