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

Side by Side Diff: pkg/analysis_server/test/services/refactoring/move_file_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.move_files; 5 library test.services.refactoring.move_files;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_server/src/services/refactoring/refactoring.dart'; 9 import 'package:analysis_server/src/services/refactoring/refactoring.dart';
10 import 'package:analyzer/file_system/file_system.dart'; 10 import 'package:analyzer/file_system/file_system.dart';
11 import 'package:analyzer/source/package_map_resolver.dart'; 11 import 'package:analyzer/source/package_map_resolver.dart';
12 import 'package:analyzer/src/generated/engine.dart'; 12 import 'package:analyzer/src/generated/engine.dart';
13 import 'package:analyzer/src/generated/source.dart'; 13 import 'package:analyzer/src/generated/source.dart';
14 import 'package:test_reflective_loader/test_reflective_loader.dart';
14 import 'package:unittest/unittest.dart'; 15 import 'package:unittest/unittest.dart';
15 16
16 import '../../abstract_context.dart'; 17 import '../../abstract_context.dart';
17 import '../../reflective_tests.dart';
18 import 'abstract_refactoring.dart'; 18 import 'abstract_refactoring.dart';
19 19
20 main() { 20 main() {
21 groupSep = ' | '; 21 groupSep = ' | ';
22 runReflectiveTests(MoveFileTest); 22 defineReflectiveTests(MoveFileTest);
23 } 23 }
24 24
25 @reflectiveTest 25 @reflectiveTest
26 class MoveFileTest extends RefactoringTest { 26 class MoveFileTest extends RefactoringTest {
27 MoveFileRefactoring refactoring; 27 MoveFileRefactoring refactoring;
28 28
29 test_file_definingUnit() async { 29 test_file_definingUnit() async {
30 String pathA = '/project/000/1111/a.dart'; 30 String pathA = '/project/000/1111/a.dart';
31 String pathB = '/project/000/1111/b.dart'; 31 String pathB = '/project/000/1111/b.dart';
32 String pathC = '/project/000/1111/22/c.dart'; 32 String pathC = '/project/000/1111/22/c.dart';
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 break; 242 break;
243 } 243 }
244 for (ChangeNotice notice in result.changeNotices) { 244 for (ChangeNotice notice in result.changeNotices) {
245 if (notice.source.fullName.startsWith('/project/')) { 245 if (notice.source.fullName.startsWith('/project/')) {
246 index.indexUnit(context, notice.resolvedDartUnit); 246 index.indexUnit(context, notice.resolvedDartUnit);
247 } 247 }
248 } 248 }
249 } 249 }
250 } 250 }
251 } 251 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698