| 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 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 ]; |
| OLD | NEW |