| 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 // This test is very long-running and put here first to compile it on its own | 8 // This test is very long-running and put here first to compile it on its own |
| 9 // in compilation0_test.dart | 9 // in compilation0_test.dart |
| 10 const Test('Disable tree shaking through reflection', const { | 10 const Test('Disable tree shaking through reflection', const { |
| (...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 624 ''', | 624 ''', |
| 625 }, preserializedSourceFiles: const { | 625 }, preserializedSourceFiles: const { |
| 626 'a.dart': ''' | 626 'a.dart': ''' |
| 627 import "dart:core" deferred as core; | 627 import "dart:core" deferred as core; |
| 628 | 628 |
| 629 test() { | 629 test() { |
| 630 core.loadLibrary().then((_) => null); | 630 core.loadLibrary().then((_) => null); |
| 631 } | 631 } |
| 632 ''', | 632 ''', |
| 633 }), | 633 }), |
| 634 |
| 635 const Test('Use of dart:indexed_db', const { |
| 636 'main.dart': ''' |
| 637 import 'a.dart'; |
| 638 |
| 639 main() {} |
| 640 ''', |
| 641 }, preserializedSourceFiles: const { |
| 642 'a.dart': ''' |
| 643 import 'dart:indexed_db'; |
| 644 ''', |
| 645 }), |
| 634 ]; | 646 ]; |
| 635 | 647 |
| 636 class Test { | 648 class Test { |
| 637 final String name; | 649 final String name; |
| 638 final Map sourceFiles; | 650 final Map sourceFiles; |
| 639 final Map preserializedSourceFiles; | 651 final Map preserializedSourceFiles; |
| 640 final Map unserializedSourceFiles; | 652 final Map unserializedSourceFiles; |
| 641 final int expectedErrorCount; | 653 final int expectedErrorCount; |
| 642 final int expectedWarningCount; | 654 final int expectedWarningCount; |
| 643 final int expectedHintCount; | 655 final int expectedHintCount; |
| 644 final int expectedInfoCount; | 656 final int expectedInfoCount; |
| 645 final bool checkedMode; | 657 final bool checkedMode; |
| 646 | 658 |
| 647 const Test( | 659 const Test( |
| 648 this.name, | 660 this.name, |
| 649 this.sourceFiles, | 661 this.sourceFiles, |
| 650 {this.preserializedSourceFiles, | 662 {this.preserializedSourceFiles, |
| 651 this.unserializedSourceFiles, | 663 this.unserializedSourceFiles, |
| 652 this.expectedErrorCount: 0, | 664 this.expectedErrorCount: 0, |
| 653 this.expectedWarningCount: 0, | 665 this.expectedWarningCount: 0, |
| 654 this.expectedHintCount: 0, | 666 this.expectedHintCount: 0, |
| 655 this.expectedInfoCount: 0, | 667 this.expectedInfoCount: 0, |
| 656 this.checkedMode: false}); | 668 this.checkedMode: false}); |
| 657 } | 669 } |
| OLD | NEW |