| 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 675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 686 ''', | 686 ''', |
| 687 }), | 687 }), |
| 688 | 688 |
| 689 const Test('Double values', const {}, | 689 const Test('Double values', const {}, |
| 690 preserializedSourceFiles: const { | 690 preserializedSourceFiles: const { |
| 691 'main.dart': ''' | 691 'main.dart': ''' |
| 692 const a = 1e+400; | 692 const a = 1e+400; |
| 693 main() => a; | 693 main() => a; |
| 694 ''', | 694 ''', |
| 695 }), | 695 }), |
| 696 |
| 697 const Test('Erroneous constructor', const {}, |
| 698 preserializedSourceFiles: const { |
| 699 'main.dart': ''' |
| 700 main() => new Null(); |
| 701 '''}), |
| 696 ]; | 702 ]; |
| 697 | 703 |
| 698 class Test { | 704 class Test { |
| 699 final String name; | 705 final String name; |
| 700 final Map sourceFiles; | 706 final Map sourceFiles; |
| 701 final Map preserializedSourceFiles; | 707 final Map preserializedSourceFiles; |
| 702 final Map unserializedSourceFiles; | 708 final Map unserializedSourceFiles; |
| 703 final int expectedErrorCount; | 709 final int expectedErrorCount; |
| 704 final int expectedWarningCount; | 710 final int expectedWarningCount; |
| 705 final int expectedHintCount; | 711 final int expectedHintCount; |
| 706 final int expectedInfoCount; | 712 final int expectedInfoCount; |
| 707 final bool checkedMode; | 713 final bool checkedMode; |
| 708 | 714 |
| 709 const Test( | 715 const Test( |
| 710 this.name, | 716 this.name, |
| 711 this.sourceFiles, | 717 this.sourceFiles, |
| 712 {this.preserializedSourceFiles, | 718 {this.preserializedSourceFiles, |
| 713 this.unserializedSourceFiles, | 719 this.unserializedSourceFiles, |
| 714 this.expectedErrorCount: 0, | 720 this.expectedErrorCount: 0, |
| 715 this.expectedWarningCount: 0, | 721 this.expectedWarningCount: 0, |
| 716 this.expectedHintCount: 0, | 722 this.expectedHintCount: 0, |
| 717 this.expectedInfoCount: 0, | 723 this.expectedInfoCount: 0, |
| 718 this.checkedMode: false}); | 724 this.checkedMode: false}); |
| 719 } | 725 } |
| OLD | NEW |