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

Unified Diff: pkg/analyzer2dart/test/end2end_data.dart

Issue 898303002: Support instance methods in analyzer2dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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/analyzer2dart/test/end2end_data.dart
diff --git a/pkg/analyzer2dart/test/end2end_data.dart b/pkg/analyzer2dart/test/end2end_data.dart
index b1c6ac32714d2d54d9fd4dde0b5deb71800a7081..364dca525ea9de4593e7e412dc83a216321bdeb8 100644
--- a/pkg/analyzer2dart/test/end2end_data.dart
+++ b/pkg/analyzer2dart/test/end2end_data.dart
@@ -828,4 +828,16 @@ main() {
}
'''),
]),
+
+ const Group('Instance method', const <TestSpec>[
+ const TestSpec('''
+class C {
+ C() {}
+ foo() {}
+}
+main() {
+ return new C().foo();
sigurdm 2015/02/06 15:04:46 You could add arguments to make the test stronger.
+}
+'''),
+]),
];

Powered by Google App Engine
This is Rietveld 408576698