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

Side by Side Diff: pkg/analysis_server/test/integration/analysis/package_root_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.integration.analysis.packageRoot; 5 library test.integration.analysis.packageRoot;
6 6
7 import 'package:analysis_server/src/protocol.dart'; 7 import 'package:analysis_server/src/protocol.dart';
8 import 'package:path/path.dart'; 8 import 'package:path/path.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 '../integration_tests.dart'; 12 import '../integration_tests.dart';
13 13
14 main() { 14 main() {
15 runReflectiveTests(Test); 15 defineReflectiveTests(Test);
16 } 16 }
17 17
18 @reflectiveTest 18 @reflectiveTest
19 class Test extends AbstractAnalysisServerIntegrationTest { 19 class Test extends AbstractAnalysisServerIntegrationTest {
20 test_package_root() { 20 test_package_root() {
21 String projPath = sourcePath('project'); 21 String projPath = sourcePath('project');
22 String mainPath = join(projPath, 'main.dart'); 22 String mainPath = join(projPath, 'main.dart');
23 String packagesPath = sourcePath('packages'); 23 String packagesPath = sourcePath('packages');
24 String fooBarPath = join(packagesPath, 'foo', 'bar.dart'); 24 String fooBarPath = join(packagesPath, 'foo', 'bar.dart');
25 String mainText = """ 25 String mainText = """
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 navigationTargets[navigationTargetIndex]; 66 navigationTargets[navigationTargetIndex];
67 String navigationFile = 67 String navigationFile =
68 navigationTargetFiles[navigationTarget.fileIndex]; 68 navigationTargetFiles[navigationTarget.fileIndex];
69 expect(navigationFile, equals(normalizedFooBarPath)); 69 expect(navigationFile, equals(normalizedFooBarPath));
70 } 70 }
71 } 71 }
72 expect(found, isTrue); 72 expect(found, isTrue);
73 }); 73 });
74 } 74 }
75 } 75 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698