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

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

Issue 313753002: Fix for implicit constructor invocation navigation regions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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/test/analysis_notification_navigation_test.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/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 4e1fa9747ee8623302e03f0600a5dea3cfbdbcab..6d80074494e3a044097c90126c98fef6af05fa19 100644
--- a/pkg/analysis_server/test/domain_analysis_test.dart
+++ b/pkg/analysis_server/test/domain_analysis_test.dart
@@ -1353,6 +1353,21 @@ class A {
});
group('instanceCreation', () {
+ test('implicit', () {
+ var code = '''
+class A {
+}
+main() {
+ new A();
+}
+''';
+ return testNavigation(code, (NotificationNavigationHelper helper) {
+ helper.asserHasRegionInts(
+ helper.findOffset('new A'), 'new A'.length,
+ helper.findOffset('A {'), 'A'.length);
+ });
+ });
+
test('named', () {
var code = '''
class A {
« no previous file with comments | « pkg/analysis_server/test/analysis_notification_navigation_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698