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

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

Issue 686743002: Support while loop in analyzer2dart. (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/analyzer2dart/lib/src/cps_generator.dart ('k') | pkg/analyzer2dart/test/end2end_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer2dart/test/end2end_data.dart
diff --git a/pkg/analyzer2dart/test/end2end_data.dart b/pkg/analyzer2dart/test/end2end_data.dart
index 455f790a75739a1e9993d3e19911b8b3809f2b89..2707641e9c7d1ca0788fb96b68cdf6b49c00e2b9 100644
--- a/pkg/analyzer2dart/test/end2end_data.dart
+++ b/pkg/analyzer2dart/test/end2end_data.dart
@@ -528,7 +528,7 @@ main() {
const TestSpec('''
main() {
- for (int i = 0; i < 10; i = i + 1) {
+ for (var i = 0; i < 10; i = i + 1) {
print(i);
}
}
@@ -558,4 +558,28 @@ main(i) {
}
'''),
]),
+
+ const Group('While loop', const <TestSpec>[
+ const TestSpec('''
+main() {
+ while (true) {}
+}
+'''),
+
+const TestSpec('''
+main() {
+ var i = 0;
+ while (i < 10) {
+ print(i);
+ i = i + 1;
+ }
+}''', '''
+main() {
+ var i = 0;
+ while (i < 10) {
+ print(i);
+ ++i;
+ }
+}'''),
+ ]),
];
« no previous file with comments | « pkg/analyzer2dart/lib/src/cps_generator.dart ('k') | pkg/analyzer2dart/test/end2end_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698