| 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'; | 8 import 'test_helper.dart'; |
| 9 | 9 |
| 10 class TestSpec extends TestSpecBase { | 10 class TestSpec extends TestSpecBase { |
| (...skipping 744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 755 main(a) { | 755 main(a) { |
| 756 var i; | 756 var i; |
| 757 for (i in a) { | 757 for (i in a) { |
| 758 print(i); | 758 print(i); |
| 759 } | 759 } |
| 760 } | 760 } |
| 761 ''', ''' | 761 ''', ''' |
| 762 main(a) { | 762 main(a) { |
| 763 var i, v0 = a.iterator; | 763 var i, v0 = a.iterator; |
| 764 while (v0.moveNext()) { | 764 while (v0.moveNext()) { |
| 765 i = v0.current; | 765 print(v0.current); |
| 766 print(i); | |
| 767 } | 766 } |
| 768 } | 767 } |
| 769 '''), | 768 '''), |
| 770 ]), | 769 ]), |
| 771 | 770 |
| 772 const Group('Local functions', const <TestSpec>[ | 771 const Group('Local functions', const <TestSpec>[ |
| 773 const TestSpec(''' | 772 const TestSpec(''' |
| 774 main(a) { | 773 main(a) { |
| 775 local() {} | 774 local() {} |
| 776 return local(); | 775 return local(); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 812 main(a) { | 811 main(a) { |
| 813 return (a ? () { | 812 return (a ? () { |
| 814 return 0; | 813 return 0; |
| 815 } : () { | 814 } : () { |
| 816 return 1; | 815 return 1; |
| 817 })(); | 816 })(); |
| 818 } | 817 } |
| 819 '''), | 818 '''), |
| 820 ]), | 819 ]), |
| 821 ]; | 820 ]; |
| OLD | NEW |