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

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

Issue 900403003: Support default constructors in analyzer2dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated to generate CPS for default constructors. Created 5 years, 10 months 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/tree_shaker.dart ('k') | pkg/analyzer2dart/test/end2end_test.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'; 8 import 'test_helper.dart';
9 9
10 class TestSpec extends TestSpecBase { 10 class TestSpec extends TestSpecBase {
(...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after
813 return 0; 813 return 0;
814 } : () { 814 } : () {
815 return 1; 815 return 1;
816 })(); 816 })();
817 } 817 }
818 '''), 818 '''),
819 ]), 819 ]),
820 820
821 const Group('Constructors', const <TestSpec>[ 821 const Group('Constructors', const <TestSpec>[
822 const TestSpec(''' 822 const TestSpec('''
823 class C {}
824 main() {
825 return new C();
826 }
827 '''),
828
829 const TestSpec('''
823 class C { 830 class C {
824 C() {} 831 C() {}
825 } 832 }
826 main() { 833 main() {
827 return new C(); 834 return new C();
828 } 835 }
829 '''), 836 '''),
837
838 const TestSpec('''
839 class B {}
840 class C extends B {
841 C() {}
842 }
843 main() {
844 return new C();
845 }
846 '''),
847
848 const TestSpec('''
849 class B {
850 B() {}
851 }
852 class C extends B {}
853 main() {
854 return new C();
855 }
856 '''),
830 ]), 857 ]),
831 858
832 const Group('Instance method', const <TestSpec>[ 859 const Group('Instance method', const <TestSpec>[
833 const TestSpec(''' 860 const TestSpec('''
834 class C { 861 class C {
835 C() {} 862 C() {}
836 foo() {} 863 foo() {}
837 } 864 }
838 main() { 865 main() {
839 return new C().foo(); 866 return new C().foo();
840 } 867 }
841 '''), 868 '''),
842 ]), 869 ]),
843 ]; 870 ];
OLDNEW
« no previous file with comments | « pkg/analyzer2dart/lib/src/tree_shaker.dart ('k') | pkg/analyzer2dart/test/end2end_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698