| 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 744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 755 import 'b.dart'; | 755 import 'b.dart'; |
| 756 | 756 |
| 757 main() => new foo(); | 757 main() => new foo(); |
| 758 ''', | 758 ''', |
| 759 'a.dart': ''' | 759 'a.dart': ''' |
| 760 var foo; | 760 var foo; |
| 761 ''', | 761 ''', |
| 762 'b.dart': ''' | 762 'b.dart': ''' |
| 763 var foo; | 763 var foo; |
| 764 ''',}), | 764 ''',}), |
| 765 |
| 766 const Test('html and mirrors', const {}, |
| 767 preserializedSourceFiles: const { |
| 768 'main.dart': ''' |
| 769 import 'dart:html'; |
| 770 import 'dart:mirrors'; |
| 771 main() {} |
| 772 '''}, |
| 773 expectedWarningCount: 1), |
| 765 ]; | 774 ]; |
| 766 | 775 |
| 767 class Test { | 776 class Test { |
| 768 final String name; | 777 final String name; |
| 769 final Map sourceFiles; | 778 final Map sourceFiles; |
| 770 final Map preserializedSourceFiles; | 779 final Map preserializedSourceFiles; |
| 771 final Map unserializedSourceFiles; | 780 final Map unserializedSourceFiles; |
| 772 final int expectedErrorCount; | 781 final int expectedErrorCount; |
| 773 final int expectedWarningCount; | 782 final int expectedWarningCount; |
| 774 final int expectedHintCount; | 783 final int expectedHintCount; |
| 775 final int expectedInfoCount; | 784 final int expectedInfoCount; |
| 776 final bool checkedMode; | 785 final bool checkedMode; |
| 777 | 786 |
| 778 const Test( | 787 const Test( |
| 779 this.name, | 788 this.name, |
| 780 this.sourceFiles, | 789 this.sourceFiles, |
| 781 {this.preserializedSourceFiles, | 790 {this.preserializedSourceFiles, |
| 782 this.unserializedSourceFiles, | 791 this.unserializedSourceFiles, |
| 783 this.expectedErrorCount: 0, | 792 this.expectedErrorCount: 0, |
| 784 this.expectedWarningCount: 0, | 793 this.expectedWarningCount: 0, |
| 785 this.expectedHintCount: 0, | 794 this.expectedHintCount: 0, |
| 786 this.expectedInfoCount: 0, | 795 this.expectedInfoCount: 0, |
| 787 this.checkedMode: false}); | 796 this.checkedMode: false}); |
| 788 } | 797 } |
| OLD | NEW |