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

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

Issue 217153002: pkg/analysis_server: fixes for unittest deprecations (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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
« no previous file with comments | « pkg/analysis_server/test/domain_context_test.dart ('k') | pkg/analysis_server/test/mocks.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.server; 5 library test.domain.server;
6 6
7 import 'package:analysis_server/src/analysis_server.dart'; 7 import 'package:analysis_server/src/analysis_server.dart';
8 import 'package:analysis_server/src/domain_server.dart'; 8 import 'package:analysis_server/src/domain_server.dart';
9 import 'package:analysis_server/src/protocol.dart'; 9 import 'package:analysis_server/src/protocol.dart';
10 import 'package:unittest/matcher.dart';
11 import 'package:unittest/unittest.dart'; 10 import 'package:unittest/unittest.dart';
12 11
13 import 'mocks.dart'; 12 import 'mocks.dart';
14 13
15 main() { 14 main() {
16 group('ServerDomainHandler', () { 15 group('ServerDomainHandler', () {
17 // test('createContext', ServerDomainHandlerTest.createContext); 16 // test('createContext', ServerDomainHandlerTest.createContext);
18 // test('deleteContext_alreadyDeleted', ServerDomainHandlerTest.deleteContext _alreadyDeleted); 17 // test('deleteContext_alreadyDeleted', ServerDomainHandlerTest.deleteContext _alreadyDeleted);
19 test('deleteContext_doesNotExist', ServerDomainHandlerTest.deleteContext_doe sNotExist); 18 test('deleteContext_doesNotExist', ServerDomainHandlerTest.deleteContext_doe sNotExist);
20 // test('deleteContext_existing', ServerDomainHandlerTest.deleteContext_exist ing); 19 // test('deleteContext_existing', ServerDomainHandlerTest.deleteContext_exist ing);
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 Response response = handler.handleRequest(versionRequest); 104 Response response = handler.handleRequest(versionRequest);
106 expect(response.toJson(), equals({ 105 expect(response.toJson(), equals({
107 Response.ID: '0', 106 Response.ID: '0',
108 Response.ERROR: null, 107 Response.ERROR: null,
109 Response.RESULT: { 108 Response.RESULT: {
110 ServerDomainHandler.VERSION_RESULT: '0.0.1' 109 ServerDomainHandler.VERSION_RESULT: '0.0.1'
111 } 110 }
112 })); 111 }));
113 } 112 }
114 } 113 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/domain_context_test.dart ('k') | pkg/analysis_server/test/mocks.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698