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

Side by Side Diff: pkg/analyzer2dart/test/end2end_data.dart

Issue 683803003: Support for loops in analyzer2dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 6 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/analyzer2dart/lib/src/dart_backend.dart ('k') | pkg/analyzer2dart/test/sexpr_data.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /// Test data for the end2end test. 5 /// Test data for the end2end test.
6 library test.end2end.data; 6 library test.end2end.data;
7 7
8 import 'test_helper.dart' show Group; 8 import 'test_helper.dart' show Group;
9 import 'test_helper.dart' as base show TestSpec; 9 import 'test_helper.dart' as base show TestSpec;
10 10
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 new Object(); 507 new Object();
508 } 508 }
509 '''), 509 '''),
510 510
511 const TestSpec(''' 511 const TestSpec('''
512 main(a) { 512 main(a) {
513 new Deprecated(""); 513 new Deprecated("");
514 } 514 }
515 '''), 515 '''),
516 ]), 516 ]),
517
518 const Group('For loop', const <TestSpec>[
519 const TestSpec('''
520 main() {
521 for (;;) {}
522 }
523 ''', '''
524 main() {
525 while (true) {}
526 }
527 '''),
528
529 const TestSpec('''
530 main() {
531 for (int i = 0; i < 10; i = i + 1) {
532 print(i);
533 }
534 }
535 ''', '''
536 main() {
537 var i = 0;
538 while (i < 10) {
539 print(i);
540 ++i;
541 }
542 }
543 '''),
544
545 const TestSpec('''
546 main(i) {
547 for (i = 0; i < 10; i = i + 1) {
548 print(i);
549 }
550 }
551 ''', '''
552 main(i) {
553 i = 0;
554 while (i < 10) {
555 print(i);
556 ++i;
557 }
558 }
559 '''),
560 ]),
517 ]; 561 ];
OLDNEW
« no previous file with comments | « pkg/analyzer2dart/lib/src/dart_backend.dart ('k') | pkg/analyzer2dart/test/sexpr_data.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698