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

Side by Side Diff: pkg/analysis_services/test/correction/change_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 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library test.services.correction.change; 8 library test.services.correction.change;
9 9
10 import 'package:analysis_services/constants.dart'; 10 import 'package:analysis_services/constants.dart';
11 import 'package:analysis_services/correction/change.dart'; 11 import 'package:analysis_services/correction/change.dart';
12 import 'package:analysis_testing/reflective_tests.dart'; 12 import 'package:analysis_testing/reflective_tests.dart';
13 import 'package:unittest/unittest.dart'; 13 import 'package:unittest/unittest.dart';
14 14
15 15
16 main() { 16 main() {
17 groupSep = ' | '; 17 groupSep = ' | ';
18 group('ChangeTest', () { 18 runReflectiveTests(ChangeTest);
19 runReflectiveTests(ChangeTest); 19 runReflectiveTests(EditTest);
20 }); 20 runReflectiveTests(FileEditTest);
21 group('EditTest', () { 21 runReflectiveTests(LinkedPositionGroupTest);
22 runReflectiveTests(EditTest); 22 runReflectiveTests(PositionTest);
23 });
24 group('FileEditTest', () {
25 runReflectiveTests(FileEditTest);
26 });
27 group('LinkedPositionGroupTest', () {
28 runReflectiveTests(LinkedPositionGroupTest);
29 });
30 group('PositionTest', () {
31 runReflectiveTests(PositionTest);
32 });
33 } 23 }
34 24
35 25
36 @ReflectiveTestCase() 26 @ReflectiveTestCase()
37 class ChangeTest { 27 class ChangeTest {
38 // void test_fromJson() {
39 // var json = {
40 // OFFSET: 1,
41 // LENGTH: 2,
42 // REPLACEMENT: 'foo'
43 // };
44 // Edit edit = Edit.fromJson(json);
45 // expect(edit.offset, 1);
46 // expect(edit.length, 2);
47 // expect(edit.replacement, 'foo');
48 // }
49
50 void test_fromJson() { 28 void test_fromJson() {
51 var json = { 29 var json = {
52 MESSAGE: 'msg', 30 MESSAGE: 'msg',
53 EDITS: [{ 31 EDITS: [{
54 FILE: '/a.dart', 32 FILE: '/a.dart',
55 EDITS: [{ 33 EDITS: [{
56 OFFSET: 1, 34 OFFSET: 1,
57 LENGTH: 2, 35 LENGTH: 2,
58 REPLACEMENT: 'aaa' 36 REPLACEMENT: 'aaa'
59 }, { 37 }, {
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 void test_toJson() { 416 void test_toJson() {
439 Position position = new Position('/test.dart', 1, 2); 417 Position position = new Position('/test.dart', 1, 2);
440 var expectedJson = { 418 var expectedJson = {
441 FILE: '/test.dart', 419 FILE: '/test.dart',
442 OFFSET: 1, 420 OFFSET: 1,
443 LENGTH: 2 421 LENGTH: 2
444 }; 422 };
445 expect(position.toJson(), expectedJson); 423 expect(position.toJson(), expectedJson);
446 } 424 }
447 } 425 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/search/top_level_declarations_test.dart ('k') | pkg/analysis_services/test/correction/fix_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698