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

Unified Diff: pkg/analysis_server/test/analysis/get_navigation_test.dart

Issue 2689213016: Issue 27214. Get any AnalysisDriver for getNavigation(). (Closed)
Patch Set: Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analysis_server/lib/src/domain_analysis.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/analysis/get_navigation_test.dart
diff --git a/pkg/analysis_server/test/analysis/get_navigation_test.dart b/pkg/analysis_server/test/analysis/get_navigation_test.dart
index 085659eadf4393ea1dfefec053a3a912ac927555..f7558f154946a6256708f953456e7cf109492678 100644
--- a/pkg/analysis_server/test/analysis/get_navigation_test.dart
+++ b/pkg/analysis_server/test/analysis/get_navigation_test.dart
@@ -49,18 +49,6 @@ main() {
return _checkInvalid(file, -1, -1);
}
- test_fileWithoutContext() {
- String file = '/outside.dart';
- addFile(
- file,
- '''
-main() {
- print(42);
-}
-''');
- return _checkInvalid(file, -1, -1);
- }
-
test_importDirective() async {
addTestFile('''
import 'dart:math';
@@ -258,4 +246,17 @@ class GetNavigationTest_Driver extends GetNavigationTest {
generateSummaryFiles = true;
super.setUp();
}
+
+ test_fileOutsideOfRoot() async {
+ testFile = '/outside.dart';
+ addTestFile('''
+main() {
+ var test = 0;
+ print(test);
+}
+''');
+ await _getNavigation(testFile, testCode.indexOf('test);'), 0);
+ assertHasRegion('test);');
+ assertHasTarget('test = 0');
+ }
}
« no previous file with comments | « pkg/analysis_server/lib/src/domain_analysis.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698