| 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 655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 666 ''', | 666 ''', |
| 667 'b.dart': ''' | 667 'b.dart': ''' |
| 668 test2() => x; | 668 test2() => x; |
| 669 var x = const ConstClass(const ConstClass(1)); | 669 var x = const ConstClass(const ConstClass(1)); |
| 670 class ConstClass { | 670 class ConstClass { |
| 671 final x; | 671 final x; |
| 672 const ConstClass(this.x); | 672 const ConstClass(this.x); |
| 673 } | 673 } |
| 674 ''', | 674 ''', |
| 675 }), | 675 }), |
| 676 |
| 677 const Test('Multi variable declaration', const { |
| 678 'main.dart': ''' |
| 679 import 'a.dart'; |
| 680 |
| 681 main() => y; |
| 682 ''', |
| 683 }, preserializedSourceFiles: const { |
| 684 'a.dart': ''' |
| 685 var x, y = 2; |
| 686 ''', |
| 687 }), |
| 676 ]; | 688 ]; |
| 677 | 689 |
| 678 class Test { | 690 class Test { |
| 679 final String name; | 691 final String name; |
| 680 final Map sourceFiles; | 692 final Map sourceFiles; |
| 681 final Map preserializedSourceFiles; | 693 final Map preserializedSourceFiles; |
| 682 final Map unserializedSourceFiles; | 694 final Map unserializedSourceFiles; |
| 683 final int expectedErrorCount; | 695 final int expectedErrorCount; |
| 684 final int expectedWarningCount; | 696 final int expectedWarningCount; |
| 685 final int expectedHintCount; | 697 final int expectedHintCount; |
| 686 final int expectedInfoCount; | 698 final int expectedInfoCount; |
| 687 final bool checkedMode; | 699 final bool checkedMode; |
| 688 | 700 |
| 689 const Test( | 701 const Test( |
| 690 this.name, | 702 this.name, |
| 691 this.sourceFiles, | 703 this.sourceFiles, |
| 692 {this.preserializedSourceFiles, | 704 {this.preserializedSourceFiles, |
| 693 this.unserializedSourceFiles, | 705 this.unserializedSourceFiles, |
| 694 this.expectedErrorCount: 0, | 706 this.expectedErrorCount: 0, |
| 695 this.expectedWarningCount: 0, | 707 this.expectedWarningCount: 0, |
| 696 this.expectedHintCount: 0, | 708 this.expectedHintCount: 0, |
| 697 this.expectedInfoCount: 0, | 709 this.expectedInfoCount: 0, |
| 698 this.checkedMode: false}); | 710 this.checkedMode: false}); |
| 699 } | 711 } |
| OLD | NEW |