| 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 742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 753 | 753 |
| 754 const TestSpec(''' | 754 const TestSpec(''' |
| 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 v0 = a.iterator; |
| 764 while (v0.moveNext()) { | 764 while (v0.moveNext()) { |
| 765 print(v0.current); | 765 print(v0.current); |
| 766 } | 766 } |
| 767 } | 767 } |
| 768 '''), | 768 '''), |
| 769 ]), | 769 ]), |
| 770 | 770 |
| 771 const Group('Local functions', const <TestSpec>[ | 771 const Group('Local functions', const <TestSpec>[ |
| 772 const TestSpec(''' | 772 const TestSpec(''' |
| 773 main(a) { | 773 main(a) { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 811 main(a) { | 811 main(a) { |
| 812 return (a ? () { | 812 return (a ? () { |
| 813 return 0; | 813 return 0; |
| 814 } : () { | 814 } : () { |
| 815 return 1; | 815 return 1; |
| 816 })(); | 816 })(); |
| 817 } | 817 } |
| 818 '''), | 818 '''), |
| 819 ]), | 819 ]), |
| 820 ]; | 820 ]; |
| OLD | NEW |