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

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

Issue 533243002: Merge analysis_testing package into analysis_server. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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_local; 5 library test.services.refactoring.inline_local;
6 6
7 import 'package:analysis_server/src/protocol.dart' hide Element; 7 import 'package:analysis_server/src/protocol.dart' hide Element;
8 import 'package:analysis_server/src/services/refactoring/inline_local.dart'; 8 import 'package:analysis_server/src/services/refactoring/inline_local.dart';
9 import 'package:analysis_server/src/services/refactoring/refactoring.dart'; 9 import 'package:analysis_server/src/services/refactoring/refactoring.dart';
10 import 'package:analysis_testing/reflective_tests.dart'; 10 import '../../reflective_tests.dart';
11 import 'package:analyzer/src/generated/ast.dart'; 11 import 'package:analyzer/src/generated/ast.dart';
12 import 'package:analyzer/src/generated/element.dart'; 12 import 'package:analyzer/src/generated/element.dart';
13 import 'package:unittest/unittest.dart'; 13 import 'package:unittest/unittest.dart';
14 14
15 import 'abstract_refactoring.dart'; 15 import 'abstract_refactoring.dart';
16 16
17 17
18 main() { 18 main() {
19 groupSep = ' | '; 19 groupSep = ' | ';
20 runReflectiveTests(InlineLocalTest); 20 runReflectiveTests(InlineLocalTest);
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 assertRefactoringStatus(status, RefactoringProblemSeverity.FATAL); 255 assertRefactoringStatus(status, RefactoringProblemSeverity.FATAL);
256 }); 256 });
257 } 257 }
258 258
259 void _createRefactoring(String search) { 259 void _createRefactoring(String search) {
260 SimpleIdentifier identifier = findIdentifier(search); 260 SimpleIdentifier identifier = findIdentifier(search);
261 LocalVariableElement element = identifier.bestElement; 261 LocalVariableElement element = identifier.bestElement;
262 refactoring = new InlineLocalRefactoring(searchEngine, testUnit, element); 262 refactoring = new InlineLocalRefactoring(searchEngine, testUnit, element);
263 } 263 }
264 } 264 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698