| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 library dart2js.serialization_test_data; | 5 library dart2js.serialization_test_data; |
| 6 | 6 |
| 7 const List<Test> TESTS = const <Test>[ | 7 const List<Test> TESTS = const <Test>[ |
| 8 // These tests are very long-running and put here first to compile them on | 8 // These tests are very long-running and put here first to compile them on |
| 9 // their own tests. | 9 // their own tests. |
| 10 const Test('Disable tree shaking through reflection', const { | 10 const Test('Disable tree shaking through reflection', const { |
| (...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 710 '''}), | 710 '''}), |
| 711 | 711 |
| 712 const Test('Metadata on exports', const {}, | 712 const Test('Metadata on exports', const {}, |
| 713 preserializedSourceFiles: const { | 713 preserializedSourceFiles: const { |
| 714 'main.dart': ''' | 714 'main.dart': ''' |
| 715 @deprecated | 715 @deprecated |
| 716 export 'main.dart'; | 716 export 'main.dart'; |
| 717 | 717 |
| 718 main() {} | 718 main() {} |
| 719 '''}), | 719 '''}), |
| 720 |
| 721 const Test('Ambiguous elements', const {}, |
| 722 preserializedSourceFiles: const { |
| 723 'main.dart': ''' |
| 724 import 'a.dart'; |
| 725 import 'b.dart'; |
| 726 |
| 727 main() => new foo(); |
| 728 ''', |
| 729 'a.dart': ''' |
| 730 var foo; |
| 731 ''', |
| 732 'b.dart': ''' |
| 733 var foo; |
| 734 ''',}), |
| 720 ]; | 735 ]; |
| 721 | 736 |
| 722 class Test { | 737 class Test { |
| 723 final String name; | 738 final String name; |
| 724 final Map sourceFiles; | 739 final Map sourceFiles; |
| 725 final Map preserializedSourceFiles; | 740 final Map preserializedSourceFiles; |
| 726 final Map unserializedSourceFiles; | 741 final Map unserializedSourceFiles; |
| 727 final int expectedErrorCount; | 742 final int expectedErrorCount; |
| 728 final int expectedWarningCount; | 743 final int expectedWarningCount; |
| 729 final int expectedHintCount; | 744 final int expectedHintCount; |
| 730 final int expectedInfoCount; | 745 final int expectedInfoCount; |
| 731 final bool checkedMode; | 746 final bool checkedMode; |
| 732 | 747 |
| 733 const Test( | 748 const Test( |
| 734 this.name, | 749 this.name, |
| 735 this.sourceFiles, | 750 this.sourceFiles, |
| 736 {this.preserializedSourceFiles, | 751 {this.preserializedSourceFiles, |
| 737 this.unserializedSourceFiles, | 752 this.unserializedSourceFiles, |
| 738 this.expectedErrorCount: 0, | 753 this.expectedErrorCount: 0, |
| 739 this.expectedWarningCount: 0, | 754 this.expectedWarningCount: 0, |
| 740 this.expectedHintCount: 0, | 755 this.expectedHintCount: 0, |
| 741 this.expectedInfoCount: 0, | 756 this.expectedInfoCount: 0, |
| 742 this.checkedMode: false}); | 757 this.checkedMode: false}); |
| 743 } | 758 } |
| OLD | NEW |