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

Side by Side Diff: pkg/analysis_server/test/services/refactoring/rename_label_test.dart

Issue 849863002: Replace @ReflectiveTestCase() with @reflectiveTest. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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.services.refactoring.rename_label; 5 library test.services.refactoring.rename_label;
6 6
7 import 'package:analysis_server/src/protocol.dart'; 7 import 'package:analysis_server/src/protocol.dart';
8 import 'package:unittest/unittest.dart'; 8 import 'package:unittest/unittest.dart';
9 9
10 import '../../reflective_tests.dart'; 10 import '../../reflective_tests.dart';
11 import 'abstract_rename.dart'; 11 import 'abstract_rename.dart';
12 12
13 13
14 main() { 14 main() {
15 groupSep = ' | '; 15 groupSep = ' | ';
16 runReflectiveTests(RenameLabelTest); 16 runReflectiveTests(RenameLabelTest);
17 } 17 }
18 18
19 19
20 @ReflectiveTestCase() 20 @reflectiveTest
21 class RenameLabelTest extends RenameRefactoringTest { 21 class RenameLabelTest extends RenameRefactoringTest {
22 test_checkNewName_LocalVariableElement() { 22 test_checkNewName_LocalVariableElement() {
23 indexTestUnit(''' 23 indexTestUnit('''
24 main() { 24 main() {
25 test: 25 test:
26 while (true) { 26 while (true) {
27 break test; 27 break test;
28 } 28 }
29 } 29 }
30 '''); 30 ''');
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 break test; 79 break test;
80 } 80 }
81 } 81 }
82 '''); 82 ''');
83 // configure refactoring 83 // configure refactoring
84 createRenameRefactoringAtString('test:'); 84 createRenameRefactoringAtString('test:');
85 // old name 85 // old name
86 expect(refactoring.oldName, 'test'); 86 expect(refactoring.oldName, 'test');
87 } 87 }
88 } 88 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698