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

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

Issue 647553006: Fix for missing LineInfo to SDK entries. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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/pubspec.yaml ('k') | pkg/analyzer/lib/src/generated/engine.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/analysis/notification_navigation_test.dart
diff --git a/pkg/analysis_server/test/analysis/notification_navigation_test.dart b/pkg/analysis_server/test/analysis/notification_navigation_test.dart
index e64876317f95bded947e3587c9cf30ed89db269b..00ce0c9e7b8bc6d1ac096e57559bed95e88998c5 100644
--- a/pkg/analysis_server/test/analysis/notification_navigation_test.dart
+++ b/pkg/analysis_server/test/analysis/notification_navigation_test.dart
@@ -186,6 +186,19 @@ AAA aaa;
});
}
+ test_class_fromSDK() {
+ addTestFile('''
+int V = 42;
+''');
+ return prepareNavigation().then((_) {
+ assertHasRegion('int V');
+ Element target = testTargets[0];
+ Location location = target.location;
+ expect(location.startLine, greaterThan(0));
+ expect(location.startColumn, greaterThan(0));
+ });
+ }
+
test_constructor_named() {
addTestFile('''
class A {
« no previous file with comments | « pkg/analysis_server/pubspec.yaml ('k') | pkg/analyzer/lib/src/generated/engine.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698