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

Unified Diff: pkg/analysis_server/test/domain_completion_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/domain_completion_test.dart
diff --git a/pkg/analysis_server/test/domain_completion_test.dart b/pkg/analysis_server/test/domain_completion_test.dart
index 08916ce1205930c5f5ac8e58f72b938169761daf..a54a5955dc42afe29cc27e088e57bee422509cf7 100644
--- a/pkg/analysis_server/test/domain_completion_test.dart
+++ b/pkg/analysis_server/test/domain_completion_test.dart
@@ -34,9 +34,10 @@ import 'package:unittest/unittest.dart';
import 'analysis_abstract.dart';
import 'mock_sdk.dart';
import 'mocks.dart';
+import 'utils.dart';
main() {
- groupSep = ' | ';
+ initializeTestEnvironment();
defineReflectiveTests(CompletionManagerTest);
defineReflectiveTests(CompletionTest);
defineReflectiveTests(_NoSearchEngine);
@@ -54,9 +55,14 @@ class CompletionManagerTest extends AbstractAnalysisTest {
ExtensionManager manager = new ExtensionManager();
ServerPlugin serverPlugin = new ServerPlugin();
manager.processPlugins([serverPlugin]);
- return new Test_AnalysisServer(super.serverChannel, super.resourceProvider,
- super.packageMapProvider, index, serverPlugin,
- new AnalysisServerOptions(), new MockSdk(),
+ return new Test_AnalysisServer(
+ super.serverChannel,
+ super.resourceProvider,
+ super.packageMapProvider,
+ index,
+ serverPlugin,
+ new AnalysisServerOptions(),
+ new MockSdk(),
InstrumentationService.NULL_SERVICE);
}
@@ -277,7 +283,8 @@ class CompletionTest extends AbstractAnalysisTest {
}
void assertHasResult(CompletionSuggestionKind kind, String completion,
- [int relevance = DART_RELEVANCE_DEFAULT, bool isDeprecated = false,
+ [int relevance = DART_RELEVANCE_DEFAULT,
+ bool isDeprecated = false,
bool isPotential = false]) {
var cs;
suggestions.forEach((s) {
@@ -475,7 +482,9 @@ class B extends A {m() {^}}
}
test_partFile() {
- addFile('/project/bin/testA.dart', '''
+ addFile(
+ '/project/bin/testA.dart',
+ '''
library libA;
part "$testFile";
import 'dart:html';
@@ -495,7 +504,9 @@ class B extends A {m() {^}}
}
test_partFile2() {
- addFile('/testA.dart', '''
+ addFile(
+ '/testA.dart',
+ '''
part of libA;
class A { }''');
addTestFile('''
@@ -655,14 +666,24 @@ class MockSubscription<E> implements StreamSubscription<E> {
class Test_AnalysisServer extends AnalysisServer {
final MockContext mockContext = new MockContext();
- Test_AnalysisServer(ServerCommunicationChannel channel,
+ Test_AnalysisServer(
+ ServerCommunicationChannel channel,
ResourceProvider resourceProvider,
- PubPackageMapProvider packageMapProvider, Index index,
- ServerPlugin serverPlugin, AnalysisServerOptions analysisServerOptions,
- DartSdk defaultSdk, InstrumentationService instrumentationService)
- : super(channel, resourceProvider, packageMapProvider, index,
- serverPlugin, analysisServerOptions, defaultSdk,
- instrumentationService);
+ PubPackageMapProvider packageMapProvider,
+ Index index,
+ ServerPlugin serverPlugin,
+ AnalysisServerOptions analysisServerOptions,
+ DartSdk defaultSdk,
+ InstrumentationService instrumentationService)
+ : super(
+ channel,
+ resourceProvider,
+ packageMapProvider,
+ index,
+ serverPlugin,
+ analysisServerOptions,
+ defaultSdk,
+ instrumentationService);
@override
AnalysisContext getAnalysisContext(String path) {
« no previous file with comments | « pkg/analysis_server/test/domain_analysis_test.dart ('k') | pkg/analysis_server/test/domain_execution_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698