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

Side by Side Diff: pkg/analysis_server/test/computer/element_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, 4 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.computer.element; 5 library test.computer.element;
6 6
7 import 'package:analysis_server/src/computer/element.dart'; 7 import 'package:analysis_server/src/computer/element.dart';
8 import 'package:analysis_services/constants.dart'; 8 import 'package:analysis_services/constants.dart';
9 import 'package:analysis_testing/abstract_context.dart'; 9 import 'package:analysis_testing/abstract_context.dart';
10 import 'package:analysis_testing/reflective_tests.dart'; 10 import 'package:analysis_testing/reflective_tests.dart';
11 import 'package:analyzer/src/generated/ast.dart'; 11 import 'package:analyzer/src/generated/ast.dart';
12 import 'package:analyzer/src/generated/element.dart' as engine; 12 import 'package:analyzer/src/generated/element.dart' as engine;
13 import 'package:analyzer/src/generated/source.dart'; 13 import 'package:analyzer/src/generated/source.dart';
14 import 'package:analyzer/src/generated/utilities_dart.dart' as engine; 14 import 'package:analyzer/src/generated/utilities_dart.dart' as engine;
15 import 'package:unittest/unittest.dart'; 15 import 'package:unittest/unittest.dart';
16 16
17 17
18 18
19 main() { 19 main() {
20 groupSep = ' | '; 20 groupSep = ' | ';
21 group('Element', () { 21 runReflectiveTests(ElementTest);
22 runReflectiveTests(ElementTest); 22 runReflectiveTests(ElementKindTest);
23 });
24 group('ElementKind', () {
25 runReflectiveTests(ElementKindTest);
26 });
27 } 23 }
28 24
29 25
30 class ElementKindTest { 26 class ElementKindTest {
31 void test_toString() { 27 void test_toString() {
32 expect(ElementKind.CLASS.toString(), 'CLASS'); 28 expect(ElementKind.CLASS.toString(), 'CLASS');
33 expect(ElementKind.COMPILATION_UNIT.toString(), 'COMPILATION_UNIT'); 29 expect(ElementKind.COMPILATION_UNIT.toString(), 'COMPILATION_UNIT');
34 } 30 }
35 31
36 void test_valueOf() { 32 void test_valueOf() {
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 FLAGS: Element.FLAG_DEPRECATED | 308 FLAGS: Element.FLAG_DEPRECATED |
313 Element.FLAG_PRIVATE | 309 Element.FLAG_PRIVATE |
314 Element.FLAG_STATIC, 310 Element.FLAG_STATIC,
315 PARAMETERS: '(int a, String b)', 311 PARAMETERS: '(int a, String b)',
316 RETURN_TYPE: 'List<String>' 312 RETURN_TYPE: 'List<String>'
317 }; 313 };
318 Element element = new Element.fromJson(json); 314 Element element = new Element.fromJson(json);
319 expect(element.toJson(), equals(json)); 315 expect(element.toJson(), equals(json));
320 } 316 }
321 } 317 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/completion_test.dart ('k') | pkg/analysis_server/test/computer/error_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698