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

Side by Side Diff: pkg/analysis_server/test/services/refactoring/rename_library_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_library; 5 library test.services.refactoring.rename_library;
6 6
7 import 'package:analysis_server/src/protocol.dart'; 7 import 'package:analysis_server/src/protocol.dart';
8 import 'package:analyzer/src/generated/source.dart'; 8 import 'package:analyzer/src/generated/source.dart';
9 import 'package:unittest/unittest.dart'; 9 import 'package:unittest/unittest.dart';
10 10
11 import '../../reflective_tests.dart'; 11 import '../../reflective_tests.dart';
12 import 'abstract_rename.dart'; 12 import 'abstract_rename.dart';
13 13
14 14
15 15
16 main() { 16 main() {
17 groupSep = ' | '; 17 groupSep = ' | ';
18 runReflectiveTests(RenameLibraryTest); 18 runReflectiveTests(RenameLibraryTest);
19 } 19 }
20 20
21 21
22 @ReflectiveTestCase() 22 @reflectiveTest
23 class RenameLibraryTest extends RenameRefactoringTest { 23 class RenameLibraryTest extends RenameRefactoringTest {
24 void test_checkNewName() { 24 void test_checkNewName() {
25 indexTestUnit(''' 25 indexTestUnit('''
26 library my.app; 26 library my.app;
27 '''); 27 ''');
28 _createRenameRefactoring(); 28 _createRenameRefactoring();
29 // null 29 // null
30 refactoring.newName = null; 30 refactoring.newName = null;
31 assertRefactoringStatus( 31 assertRefactoringStatus(
32 refactoring.checkNewName(), 32 refactoring.checkNewName(),
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 assertFileChangeResult('/part.dart', ''' 70 assertFileChangeResult('/part.dart', '''
71 part of the.new.name; 71 part of the.new.name;
72 '''); 72 ''');
73 }); 73 });
74 } 74 }
75 75
76 void _createRenameRefactoring() { 76 void _createRenameRefactoring() {
77 createRenameRefactoringForElement(testUnitElement.library); 77 createRenameRefactoringForElement(testUnitElement.library);
78 } 78 }
79 } 79 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698