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

Side by Side Diff: pkg/analysis_services/test/correction/source_range_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.source_range; 8 library test.services.correction.source_range;
9 9
10 import 'package:analysis_services/src/correction/source_range.dart'; 10 import 'package:analysis_services/src/correction/source_range.dart';
11 import 'package:analysis_testing/abstract_single_unit.dart'; 11 import 'package:analysis_testing/abstract_single_unit.dart';
12 import 'package:analysis_testing/reflective_tests.dart'; 12 import 'package:analysis_testing/reflective_tests.dart';
13 import 'package:analyzer/src/generated/ast.dart'; 13 import 'package:analyzer/src/generated/ast.dart';
14 import 'package:analyzer/src/generated/element.dart'; 14 import 'package:analyzer/src/generated/element.dart';
15 import 'package:analyzer/src/generated/error.dart'; 15 import 'package:analyzer/src/generated/error.dart';
16 import 'package:analyzer/src/generated/parser.dart'; 16 import 'package:analyzer/src/generated/parser.dart';
17 import 'package:analyzer/src/generated/source.dart'; 17 import 'package:analyzer/src/generated/source.dart';
18 import 'package:unittest/unittest.dart' hide isEmpty; 18 import 'package:unittest/unittest.dart' hide isEmpty;
19 19
20 20
21 main() { 21 main() {
22 groupSep = ' | '; 22 groupSep = ' | ';
23 group('source_range', () { 23 runReflectiveTests(SourceRangesTest);
24 runReflectiveTests(SourceRangesTest);
25 });
26 } 24 }
27 25
28 26
29 @ReflectiveTestCase() 27 @ReflectiveTestCase()
30 class SourceRangesTest extends AbstractSingleUnitTest { 28 class SourceRangesTest extends AbstractSingleUnitTest {
31 void test_rangeElementName() { 29 void test_rangeElementName() {
32 resolveTestUnit('class ABC {}'); 30 resolveTestUnit('class ABC {}');
33 Element element = findElement('ABC'); 31 Element element = findElement('ABC');
34 expect(rangeElementName(element), new SourceRange(6, 3)); 32 expect(rangeElementName(element), new SourceRange(6, 3));
35 } 33 }
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 expect(rangeStartStart(mainName, mainBody), new SourceRange(0, 7)); 112 expect(rangeStartStart(mainName, mainBody), new SourceRange(0, 7));
115 } 113 }
116 114
117 void test_rangeToken() { 115 void test_rangeToken() {
118 resolveTestUnit(' main() {}'); 116 resolveTestUnit(' main() {}');
119 FunctionDeclaration mainFunction = testUnit.declarations[0]; 117 FunctionDeclaration mainFunction = testUnit.declarations[0];
120 SimpleIdentifier mainName = mainFunction.name; 118 SimpleIdentifier mainName = mainFunction.name;
121 expect(rangeToken(mainName.beginToken), new SourceRange(1, 4)); 119 expect(rangeToken(mainName.beginToken), new SourceRange(1, 4));
122 } 120 }
123 } 121 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698