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

Side by Side Diff: pkg/analysis_server/test/channel_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.channel; 5 library test.channel;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_server/src/channel.dart'; 9 import 'package:analysis_server/src/channel.dart';
10 import 'package:analysis_server/src/protocol.dart'; 10 import 'package:analysis_server/src/protocol.dart';
11 import 'package:unittest/matcher.dart'; 11 import 'package:unittest/matcher.dart';
12 import 'package:unittest/unittest.dart'; 12 import 'package:unittest/unittest.dart';
13 13
14 import 'mocks.dart'; 14 import 'mocks.dart';
15 15
16 main() { 16 main(List<String> args) {
Brian Wilkerson 2014/03/22 14:37:20 I'm not sure what the value of adding 'args' is wh
danrubel 2014/03/25 19:03:58 Good point. Removed here and elsewhere.
17 group('WebSocketChannel', () { 17 group('WebSocketChannel', () {
18 setUp(WebSocketChannelTest.setUp); 18 setUp(WebSocketChannelTest.setUp);
19 test('close', WebSocketChannelTest.close); 19 test('close', WebSocketChannelTest.close);
20 test('invalidJsonToClient', WebSocketChannelTest.invalidJsonToClient); 20 test('invalidJsonToClient', WebSocketChannelTest.invalidJsonToClient);
21 test('invalidJsonToServer', WebSocketChannelTest.invalidJsonToServer); 21 test('invalidJsonToServer', WebSocketChannelTest.invalidJsonToServer);
22 test('notification', WebSocketChannelTest.notification); 22 test('notification', WebSocketChannelTest.notification);
23 test('notificationAndResponse', WebSocketChannelTest.notificationAndResponse ); 23 test('notificationAndResponse', WebSocketChannelTest.notificationAndResponse );
24 test('request', WebSocketChannelTest.request); 24 test('request', WebSocketChannelTest.request);
25 test('requestResponse', WebSocketChannelTest.requestResponse); 25 test('requestResponse', WebSocketChannelTest.requestResponse);
26 test('response', WebSocketChannelTest.response); 26 test('response', WebSocketChannelTest.response);
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 } 151 }
152 152
153 static void expectMsgCount({requestCount: 0, 153 static void expectMsgCount({requestCount: 0,
154 responseCount: 0, 154 responseCount: 0,
155 notificationCount: 0}) { 155 notificationCount: 0}) {
156 expect(requestsReceived, hasLength(requestCount)); 156 expect(requestsReceived, hasLength(requestCount));
157 expect(responsesReceived, hasLength(responseCount)); 157 expect(responsesReceived, hasLength(responseCount));
158 expect(notificationsReceived, hasLength(notificationCount)); 158 expect(notificationsReceived, hasLength(notificationCount));
159 } 159 }
160 } 160 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analysis_server/test/domain_context_test.dart » ('j') | pkg/analysis_server/test/test_runner.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698