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

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

Issue 661193004: Issue 21419. Don't create navigation region for elements without location. (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/lib/src/computer/computer_navigation.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/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 386c0ff13397ffef0d11b4b3c25c941dfdfa723e..42c2d5a3776dd49734ad47014c58034f2ab005f7 100644
--- a/pkg/analysis_server/test/analysis/notification_navigation_test.dart
+++ b/pkg/analysis_server/test/analysis/notification_navigation_test.dart
@@ -369,6 +369,21 @@ main() {
});
}
+ test_multiplyDefinedElement() {
+ addFile('$projectPath/bin/libA.dart', 'library A; int TEST = 1;');
+ addFile('$projectPath/bin/libB.dart', 'library B; int TEST = 2;');
+ addTestFile('''
+import 'libA.dart';
+import 'libB.dart';
+main() {
+ TEST;
+}
+''');
+ return prepareNavigation().then((_) {
+ assertNoRegionAt('TEST');
+ });
+ }
+
test_operator_arithmetic() {
addTestFile('''
class A {
« no previous file with comments | « pkg/analysis_server/lib/src/computer/computer_navigation.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698