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

Side by Side Diff: pkg/analysis_server/test/services/refactoring/extract_method_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.extract_method; 5 library test.services.refactoring.extract_method;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_server/src/protocol.dart'; 9 import 'package:analysis_server/src/protocol.dart';
10 import 'package:analysis_server/src/services/refactoring/extract_method.dart'; 10 import 'package:analysis_server/src/services/refactoring/extract_method.dart';
11 import 'package:analysis_server/src/services/refactoring/refactoring.dart'; 11 import 'package:analysis_server/src/services/refactoring/refactoring.dart';
12 import 'package:unittest/unittest.dart'; 12 import 'package:unittest/unittest.dart';
13 13
14 import '../../reflective_tests.dart'; 14 import '../../reflective_tests.dart';
15 import 'abstract_refactoring.dart'; 15 import 'abstract_refactoring.dart';
16 16
17 17
18 main() { 18 main() {
19 groupSep = ' | '; 19 groupSep = ' | ';
20 runReflectiveTests(ExtractMethodTest); 20 runReflectiveTests(ExtractMethodTest);
21 } 21 }
22 22
23 23
24 @ReflectiveTestCase() 24 @reflectiveTest
25 class ExtractMethodTest extends RefactoringTest { 25 class ExtractMethodTest extends RefactoringTest {
26 ExtractMethodRefactoringImpl refactoring; 26 ExtractMethodRefactoringImpl refactoring;
27 27
28 test_bad_assignmentLeftHandSide() { 28 test_bad_assignmentLeftHandSide() {
29 indexTestUnit(''' 29 indexTestUnit('''
30 main() { 30 main() {
31 int aaa; 31 int aaa;
32 aaa = 0; 32 aaa = 0;
33 } 33 }
34 '''); 34 ''');
(...skipping 2453 matching lines...) Expand 10 before | Expand all | Expand 10 after
2488 * Returns a deep copy of [refactoring] parameters. 2488 * Returns a deep copy of [refactoring] parameters.
2489 * There was a bug masked by updating parameter instances shared between the 2489 * There was a bug masked by updating parameter instances shared between the
2490 * refactoring and the test. 2490 * refactoring and the test.
2491 */ 2491 */
2492 List<RefactoringMethodParameter> _getParametersCopy() { 2492 List<RefactoringMethodParameter> _getParametersCopy() {
2493 return refactoring.parameters.map((p) { 2493 return refactoring.parameters.map((p) {
2494 return new RefactoringMethodParameter(p.kind, p.type, p.name, id: p.id); 2494 return new RefactoringMethodParameter(p.kind, p.type, p.name, id: p.id);
2495 }).toList(); 2495 }).toList();
2496 } 2496 }
2497 } 2497 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698