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

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

Issue 1101003002: Use package:test_reflective_loader instead of reflective_tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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_class_member; 5 library test.services.refactoring.rename_class_member;
6 6
7 import 'package:analysis_server/src/protocol.dart'; 7 import 'package:analysis_server/src/protocol.dart';
8 import 'package:analysis_server/src/services/correction/status.dart'; 8 import 'package:analysis_server/src/services/correction/status.dart';
9 import 'package:test_reflective_loader/test_reflective_loader.dart';
9 import 'package:unittest/unittest.dart'; 10 import 'package:unittest/unittest.dart';
10 11
11 import '../../reflective_tests.dart';
12 import 'abstract_rename.dart'; 12 import 'abstract_rename.dart';
13 13
14 main() { 14 main() {
15 groupSep = ' | '; 15 groupSep = ' | ';
16 runReflectiveTests(RenameClassMemberTest); 16 defineReflectiveTests(RenameClassMemberTest);
17 } 17 }
18 18
19 @reflectiveTest 19 @reflectiveTest
20 class RenameClassMemberTest extends RenameRefactoringTest { 20 class RenameClassMemberTest extends RenameRefactoringTest {
21 test_checkFinalConditions_hasMember_MethodElement() async { 21 test_checkFinalConditions_hasMember_MethodElement() async {
22 indexTestUnit(''' 22 indexTestUnit('''
23 class A { 23 class A {
24 test() {} 24 test() {}
25 newName() {} // existing 25 newName() {} // existing
26 } 26 }
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after
697 // validate change 697 // validate change
698 return assertSuccessfulRefactoring(''' 698 return assertSuccessfulRefactoring('''
699 class A<NewName> { 699 class A<NewName> {
700 NewName field; 700 NewName field;
701 List<NewName> items; 701 List<NewName> items;
702 NewName method(NewName p) => null; 702 NewName method(NewName p) => null;
703 } 703 }
704 '''); 704 ''');
705 } 705 }
706 } 706 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698