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

Side by Side Diff: pkg/analysis_server/test/integration/analysis/package_root_test.dart

Issue 2820893002: Make the analysis server integration tests driver only. (Closed)
Patch Set: uncomment test code Created 3 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
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 import 'package:analysis_server/plugin/protocol/protocol.dart'; 5 import 'package:analysis_server/plugin/protocol/protocol.dart';
6 import 'package:path/path.dart' as path; 6 import 'package:path/path.dart' as path;
7 import 'package:test/test.dart'; 7 import 'package:test/test.dart';
8 import 'package:test_reflective_loader/test_reflective_loader.dart'; 8 import 'package:test_reflective_loader/test_reflective_loader.dart';
9 9
10 import '../integration_tests.dart'; 10 import '../integration_tests.dart';
11 11
12 main() { 12 main() {
13 defineReflectiveSuite(() { 13 defineReflectiveSuite(() {
14 defineReflectiveTests(SetAnalysisRootsTest); 14 defineReflectiveTests(SetAnalysisRootsTest);
15 defineReflectiveTests(SetAnalysisRootsTest_Driver);
16 }); 15 });
17 } 16 }
18 17
19 class AbstractSetAnalysisRootsTest 18 @reflectiveTest
20 extends AbstractAnalysisServerIntegrationTest { 19 class SetAnalysisRootsTest extends AbstractAnalysisServerIntegrationTest {
21 test_package_root() { 20 test_package_root() {
22 String projPath = sourcePath('project'); 21 String projPath = sourcePath('project');
23 String mainPath = path.join(projPath, 'main.dart'); 22 String mainPath = path.join(projPath, 'main.dart');
24 String packagesPath = sourcePath('packages'); 23 String packagesPath = sourcePath('packages');
25 String fooBarPath = path.join(packagesPath, 'foo', 'bar.dart'); 24 String fooBarPath = path.join(packagesPath, 'foo', 'bar.dart');
26 String mainText = """ 25 String mainText = """
27 library main; 26 library main;
28 27
29 import 'package:foo/bar.dart' 28 import 'package:foo/bar.dart'
30 29
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 navigationTargets[navigationTargetIndex]; 69 navigationTargets[navigationTargetIndex];
71 String navigationFile = 70 String navigationFile =
72 navigationTargetFiles[navigationTarget.fileIndex]; 71 navigationTargetFiles[navigationTarget.fileIndex];
73 expect(navigationFile, equals(normalizedFooBarPath)); 72 expect(navigationFile, equals(normalizedFooBarPath));
74 } 73 }
75 } 74 }
76 expect(found, isTrue); 75 expect(found, isTrue);
77 }); 76 });
78 } 77 }
79 } 78 }
80
81 @reflectiveTest
82 class SetAnalysisRootsTest extends AbstractSetAnalysisRootsTest {}
83
84 @reflectiveTest
85 class SetAnalysisRootsTest_Driver extends AbstractSetAnalysisRootsTest {
86 @override
87 bool get enableNewAnalysisDriver => true;
88 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698