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

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

Issue 969113002: Reformat (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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_server_test.dart
diff --git a/pkg/analysis_server/test/domain_server_test.dart b/pkg/analysis_server/test/domain_server_test.dart
index dc76e8425a5671727bf7d6fcba1e45f268896043..94a932d16e5eea101810c7a6ddd25763b49bf66b 100644
--- a/pkg/analysis_server/test/domain_server_test.dart
+++ b/pkg/analysis_server/test/domain_server_test.dart
@@ -22,14 +22,9 @@ main() {
setUp(() {
var serverChannel = new MockServerChannel();
var resourceProvider = new MemoryResourceProvider();
- server = new AnalysisServer(
- serverChannel,
- resourceProvider,
- new MockPackageMapProvider(),
- null,
- new AnalysisServerOptions(),
- new MockSdk(),
- InstrumentationService.NULL_SERVICE);
+ server = new AnalysisServer(serverChannel, resourceProvider,
+ new MockPackageMapProvider(), null, new AnalysisServerOptions(),
+ new MockSdk(), InstrumentationService.NULL_SERVICE);
handler = new ServerDomainHandler(server);
});
@@ -39,17 +34,14 @@ main() {
var response = handler.handleRequest(request);
expect(response.toJson(), equals({
Response.ID: '0',
- Response.RESULT: {
- VERSION: AnalysisServer.VERSION
- }
+ Response.RESULT: {VERSION: AnalysisServer.VERSION}
}));
});
group('setSubscriptions', () {
test('invalid service name', () {
- Request request = new Request('0', SERVER_SET_SUBSCRIPTIONS, {
- SUBSCRIPTIONS: ['noSuchService']
- });
+ Request request = new Request(
+ '0', SERVER_SET_SUBSCRIPTIONS, {SUBSCRIPTIONS: ['noSuchService']});
var response = handler.handleRequest(request);
expect(response, isResponseFailure('0'));
});
@@ -58,7 +50,8 @@ main() {
expect(server.serverServices, isEmpty);
// send request
Request request =
- new ServerSetSubscriptionsParams([ServerService.STATUS]).toRequest('0');
+ new ServerSetSubscriptionsParams([ServerService.STATUS])
+ .toRequest('0');
var response = handler.handleRequest(request);
expect(response, isResponseSuccess('0'));
// set of services has been changed
« no previous file with comments | « pkg/analysis_server/test/domain_execution_test.dart ('k') | pkg/analysis_server/test/edit/assists_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698