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

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

Issue 666863002: Support conditional expressions in analyzer2dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Visit conditionally. 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
Index: pkg/analyzer2dart/test/end2end_test.dart
diff --git a/pkg/analyzer2dart/test/end2end_test.dart b/pkg/analyzer2dart/test/end2end_test.dart
index 6d2592997606a32a53a3491a6be40be4b8be4b63..8bdbfffaa2e3b25770a38453e02c4a22054ecc39 100644
--- a/pkg/analyzer2dart/test/end2end_test.dart
+++ b/pkg/analyzer2dart/test/end2end_test.dart
@@ -484,7 +484,18 @@ main(a) {
}
}
''');
+ });
+ test('If statement', () {
+ checkResult('''
+main(a) {
+ return a ? print(0) : print(1);
+}
+''', '''
+main(a) {
+ return a ? print(0) : print(1);
+}
+''');
});
}

Powered by Google App Engine
This is Rietveld 408576698