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

Unified Diff: pkg/analysis_server/test/domain_analysis_test.dart

Issue 449583003: Fix for opening SDK sources. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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
Index: pkg/analysis_server/test/domain_analysis_test.dart
diff --git a/pkg/analysis_server/test/domain_analysis_test.dart b/pkg/analysis_server/test/domain_analysis_test.dart
index a18dc3af17b41ca6fa698f6414a142b328a96187..78676ada9ebd81a0234584a76922a4942f99c914 100644
--- a/pkg/analysis_server/test/domain_analysis_test.dart
+++ b/pkg/analysis_server/test/domain_analysis_test.dart
@@ -282,6 +282,23 @@ void test_setSubscriptions() {
});
});
});
+
+ test('after analysis, SDK file', () {
+ AnalysisTestHelper helper = new AnalysisTestHelper();
+ helper.createSingleFileProject('''
+main() {
+ print(42);
+}
+''');
+ return helper.waitForOperationsFinished().then((_) {
+ String file = '/lib/core/core.dart';
+ helper.addAnalysisSubscriptionNavigation(file);
+ return helper.waitForOperationsFinished().then((_) {
+ var navigationRegions = helper.getNavigation(file);
+ expect(navigationRegions, isNot(isEmpty));
+ });
+ });
+ });
}

Powered by Google App Engine
This is Rietveld 408576698