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

Unified Diff: pkg/analysis_server/test/domain_completion_test.dart

Issue 1310263003: Reformat code to minimize churn (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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 f09af0e82152471ec1d4ae7d556a5d15d8ce89a6..3c3306e844c5594c8bf6a4f3773c64df6d9b4511 100644
--- a/pkg/analysis_server/test/domain_completion_test.dart
+++ b/pkg/analysis_server/test/domain_completion_test.dart
@@ -55,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);
}
@@ -422,8 +427,9 @@ class CompletionTest extends AbstractAnalysisTest {
{testFile: new AddContentOverlay(revisedContent)}).toRequest('add1'));
// Request code completion immediately after edit
- Response response = handleSuccessfulRequest(new CompletionGetSuggestionsParams(
- testFile, completionOffset).toRequest('0'));
+ Response response = handleSuccessfulRequest(
+ new CompletionGetSuggestionsParams(testFile, completionOffset)
+ .toRequest('0'));
completionId = response.id;
assertValidId(completionId);
await waitForTasksFinished();
@@ -536,7 +542,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';
@@ -556,7 +564,9 @@ class B extends A {m() {^}}
}
test_partFile2() {
- addFile('/testA.dart', '''
+ addFile(
+ '/testA.dart',
+ '''
part of libA;
class A { }''');
addTestFile('''
@@ -716,14 +726,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/context_manager_test.dart ('k') | pkg/analysis_server/test/integration/integration_tests.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698