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

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

Issue 419563002: Remove any 'group' invocations enclosing 'runReflectiveTests'. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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.protocol; 5 library test.protocol;
6 6
7 import 'dart:convert'; 7 import 'dart:convert';
8 8
9 import 'package:analysis_server/src/protocol.dart'; 9 import 'package:analysis_server/src/protocol.dart';
10 import 'package:analysis_services/json.dart'; 10 import 'package:analysis_services/json.dart';
11 import 'package:analysis_testing/reflective_tests.dart'; 11 import 'package:analysis_testing/reflective_tests.dart';
12 import 'package:unittest/unittest.dart'; 12 import 'package:unittest/unittest.dart';
13 13
14 14
15 Matcher _throwsRequestFailure = throwsA(new isInstanceOf<RequestFailure>()); 15 Matcher _throwsRequestFailure = throwsA(new isInstanceOf<RequestFailure>());
16 16
17 17
18 main() { 18 main() {
19 groupSep = ' | '; 19 groupSep = ' | ';
20 group('Notification', () { 20 runReflectiveTests(NotificationTest);
21 runReflectiveTests(NotificationTest); 21 runReflectiveTests(RequestTest);
22 }); 22 runReflectiveTests(RequestErrorTest);
23 group('Request', () { 23 runReflectiveTests(RequestDatumTest);
24 runReflectiveTests(RequestTest); 24 runReflectiveTests(ResponseTest);
25 });
26 group('RequestError', () {
27 runReflectiveTests(RequestErrorTest);
28 });
29 group('RequestDatum', () {
30 runReflectiveTests(RequestDatumTest);
31 });
32 group('Response', () {
33 runReflectiveTests(ResponseTest);
34 });
35 } 25 }
36 26
37 27
38 @ReflectiveTestCase() 28 @ReflectiveTestCase()
39 class InvalidParameterResponseMatcher extends Matcher { 29 class InvalidParameterResponseMatcher extends Matcher {
40 static const int ERROR_CODE = -2; 30 static const int ERROR_CODE = -2;
41 31
42 @override 32 @override
43 Description describe(Description description) => description.add( 33 Description describe(Description description) => description.add(
44 "an 'invalid parameter' response (code $ERROR_CODE)"); 34 "an 'invalid parameter' response (code $ERROR_CODE)");
(...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 response.setResult(resultName, resultValue); 694 response.setResult(resultName, resultValue);
705 expect(response.getResult(resultName), same(resultValue)); 695 expect(response.getResult(resultName), same(resultValue));
706 expect(response.toJson(), equals({ 696 expect(response.toJson(), equals({
707 Response.ID: '0', 697 Response.ID: '0',
708 Response.RESULT: { 698 Response.RESULT: {
709 resultName: resultValue 699 resultName: resultValue
710 } 700 }
711 })); 701 }));
712 } 702 }
713 } 703 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/package_uri_resolver_test.dart ('k') | pkg/analysis_server/test/search/element_references_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698