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

Side by Side Diff: pkg/analysis_server/test/services/refactoring/inline_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.inline_method; 5 library test.services.refactoring.inline_method;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_server/src/protocol.dart' hide Element; 9 import 'package:analysis_server/src/protocol.dart' hide Element;
10 import 'package:analysis_server/src/services/refactoring/inline_method.dart'; 10 import 'package:analysis_server/src/services/refactoring/inline_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:analyzer/src/generated/source.dart'; 12 import 'package:analyzer/src/generated/source.dart';
13 import 'package:unittest/unittest.dart'; 13 import 'package:unittest/unittest.dart';
14 14
15 import '../../reflective_tests.dart'; 15 import '../../reflective_tests.dart';
16 import 'abstract_refactoring.dart'; 16 import 'abstract_refactoring.dart';
17 17
18 18
19 main() { 19 main() {
20 groupSep = ' | '; 20 groupSep = ' | ';
21 runReflectiveTests(InlineMethodTest); 21 runReflectiveTests(InlineMethodTest);
22 } 22 }
23 23
24 24
25 @ReflectiveTestCase() 25 @reflectiveTest
26 class InlineMethodTest extends RefactoringTest { 26 class InlineMethodTest extends RefactoringTest {
27 InlineMethodRefactoringImpl refactoring; 27 InlineMethodRefactoringImpl refactoring;
28 bool deleteSource; 28 bool deleteSource;
29 bool inlineAll; 29 bool inlineAll;
30 30
31 test_access_FunctionElement() { 31 test_access_FunctionElement() {
32 indexTestUnit(r''' 32 indexTestUnit(r'''
33 test(a, b) { 33 test(a, b) {
34 return a + b; 34 return a + b;
35 } 35 }
(...skipping 1397 matching lines...) Expand 10 before | Expand all | Expand 10 after
1433 }); 1433 });
1434 }); 1434 });
1435 }); 1435 });
1436 } 1436 }
1437 1437
1438 void _createRefactoring(String search) { 1438 void _createRefactoring(String search) {
1439 int offset = findOffset(search); 1439 int offset = findOffset(search);
1440 refactoring = new InlineMethodRefactoring(searchEngine, testUnit, offset); 1440 refactoring = new InlineMethodRefactoring(searchEngine, testUnit, offset);
1441 } 1441 }
1442 } 1442 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698