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

Side by Side Diff: pkg/analysis_server/test/domain_context_test.dart

Issue 209003005: utility for manually running all analysis_server tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library test.domain.context; 5 library test.domain.context;
6 6
7 import 'package:analyzer/src/generated/engine.dart'; 7 import 'package:analyzer/src/generated/engine.dart';
8 import 'package:analysis_server/src/analysis_server.dart'; 8 import 'package:analysis_server/src/analysis_server.dart';
9 import 'package:analysis_server/src/domain_context.dart'; 9 import 'package:analysis_server/src/domain_context.dart';
10 import 'package:analysis_server/src/domain_server.dart'; 10 import 'package:analysis_server/src/domain_server.dart';
11 import 'package:analysis_server/src/protocol.dart'; 11 import 'package:analysis_server/src/protocol.dart';
12 import 'package:unittest/matcher.dart'; 12 import 'package:unittest/matcher.dart';
13 import 'package:unittest/unittest.dart'; 13 import 'package:unittest/unittest.dart';
14 14
15 import 'mocks.dart'; 15 import 'mocks.dart';
16 16
17 main() { 17 main(List<String> args) {
18 group('ContextDomainHandlerTest', () { 18 group('ContextDomainHandlerTest', () {
19 test('applyChanges', ContextDomainHandlerTest.applyChanges); 19 test('applyChanges', ContextDomainHandlerTest.applyChanges);
20 test('setOptions', ContextDomainHandlerTest.setOptions); 20 test('setOptions', ContextDomainHandlerTest.setOptions);
21 test('setPrioritySources_empty', ContextDomainHandlerTest.setPrioritySources _empty); 21 test('setPrioritySources_empty', ContextDomainHandlerTest.setPrioritySources _empty);
22 test('setPrioritySources_nonEmpty', ContextDomainHandlerTest.setPrioritySour ces_nonEmpty); 22 test('setPrioritySources_nonEmpty', ContextDomainHandlerTest.setPrioritySour ces_nonEmpty);
23 }); 23 });
24 } 24 }
25 25
26 class ContextDomainHandlerTest { 26 class ContextDomainHandlerTest {
27 static void applyChanges() { 27 static void applyChanges() {
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 Request request = new Request('0', ServerDomainHandler.CREATE_CONTEXT_METHOD ); 96 Request request = new Request('0', ServerDomainHandler.CREATE_CONTEXT_METHOD );
97 request.setParameter(ServerDomainHandler.SDK_DIRECTORY_PARAM, sdkPath); 97 request.setParameter(ServerDomainHandler.SDK_DIRECTORY_PARAM, sdkPath);
98 Response response = handler.handleRequest(request); 98 Response response = handler.handleRequest(request);
99 if (response.error != null) { 99 if (response.error != null) {
100 fail('Unexpected error: ${response.error.toJson()}'); 100 fail('Unexpected error: ${response.error.toJson()}');
101 } 101 }
102 expect(response.error, isNull); 102 expect(response.error, isNull);
103 return response.getResult(ServerDomainHandler.CONTEXT_ID_RESULT); 103 return response.getResult(ServerDomainHandler.CONTEXT_ID_RESULT);
104 } 104 }
105 } 105 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698