| OLD | NEW |
| 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 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 521 for (;;) {} | 521 for (;;) {} |
| 522 } | 522 } |
| 523 ''', ''' | 523 ''', ''' |
| 524 main() { | 524 main() { |
| 525 while (true) {} | 525 while (true) {} |
| 526 } | 526 } |
| 527 '''), | 527 '''), |
| 528 | 528 |
| 529 const TestSpec(''' | 529 const TestSpec(''' |
| 530 main() { | 530 main() { |
| 531 for (int i = 0; i < 10; i = i + 1) { | 531 for (var i = 0; i < 10; i = i + 1) { |
| 532 print(i); | 532 print(i); |
| 533 } | 533 } |
| 534 } | 534 } |
| 535 ''', ''' | 535 ''', ''' |
| 536 main() { | 536 main() { |
| 537 var i = 0; | 537 var i = 0; |
| 538 while (i < 10) { | 538 while (i < 10) { |
| 539 print(i); | 539 print(i); |
| 540 ++i; | 540 ++i; |
| 541 } | 541 } |
| 542 } | 542 } |
| 543 '''), | 543 '''), |
| 544 | 544 |
| 545 const TestSpec(''' | 545 const TestSpec(''' |
| 546 main(i) { | 546 main(i) { |
| 547 for (i = 0; i < 10; i = i + 1) { | 547 for (i = 0; i < 10; i = i + 1) { |
| 548 print(i); | 548 print(i); |
| 549 } | 549 } |
| 550 } | 550 } |
| 551 ''', ''' | 551 ''', ''' |
| 552 main(i) { | 552 main(i) { |
| 553 i = 0; | 553 i = 0; |
| 554 while (i < 10) { | 554 while (i < 10) { |
| 555 print(i); | 555 print(i); |
| 556 ++i; | 556 ++i; |
| 557 } | 557 } |
| 558 } | 558 } |
| 559 '''), | 559 '''), |
| 560 ]), | 560 ]), |
| 561 |
| 562 const Group('While loop', const <TestSpec>[ |
| 563 const TestSpec(''' |
| 564 main() { |
| 565 while (true) {} |
| 566 } |
| 567 '''), |
| 568 |
| 569 const TestSpec(''' |
| 570 main() { |
| 571 var i = 0; |
| 572 while (i < 10) { |
| 573 print(i); |
| 574 i = i + 1; |
| 575 } |
| 576 }''', ''' |
| 577 main() { |
| 578 var i = 0; |
| 579 while (i < 10) { |
| 580 print(i); |
| 581 ++i; |
| 582 } |
| 583 }'''), |
| 584 ]), |
| 561 ]; | 585 ]; |
| OLD | NEW |