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 68b347c18197d2092fccf8bd7d4b3b401c031605..ff643e3c55a26c125d41a3076d1346cf9c5dc78d 100644 |
--- a/pkg/analysis_server/test/analysis/notification_navigation_test.dart |
+++ b/pkg/analysis_server/test/analysis/notification_navigation_test.dart |
@@ -797,6 +797,30 @@ main() { |
}); |
} |
+ test_redirectingConstructorInvocation() { |
+ addTestFile(''' |
+class A { |
+ A() {} |
+ A.foo() : this(); |
+ A.bar() : this.foo(); |
+} |
+'''); |
+ return prepareNavigation().then((_) { |
+ { |
+ assertHasRegion('this();'); |
+ assertHasTarget('A() {}', 0); |
+ } |
+ { |
+ assertHasRegion('this.foo'); |
+ assertHasTarget('foo() :'); |
+ } |
+ { |
+ assertHasRegion('foo();'); |
+ assertHasTarget('foo() :'); |
+ } |
+ }); |
+ } |
+ |
test_string_export() { |
var libCode = 'library lib;'; |
var libFile = addFile('$projectPath/bin/lib.dart', libCode); |
@@ -878,7 +902,11 @@ class B extends A { |
assertHasTarget('A() {}', 0); |
} |
{ |
- assertHasRegionString('super.named'); |
+ assertHasRegion('super.named'); |
+ assertHasTarget('named() {}'); |
+ } |
+ { |
+ assertHasRegion('named();'); |
assertHasTarget('named() {}'); |
} |
}); |