Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: tests/compiler/dart2js/serialization/test_data.dart

Issue 2256203002: Ensure metadata on imports/exports is resolved for serialization. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pkg/compiler/lib/src/resolution/constructors.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 '''}),
702
703 const Test('Metadata on imports', const {},
704 preserializedSourceFiles: const {
705 'main.dart': '''
706 @deprecated
707 import 'main.dart';
708
709 main() {}
710 '''}),
711
712 const Test('Metadata on exports', const {},
713 preserializedSourceFiles: const {
714 'main.dart': '''
715 @deprecated
716 export 'main.dart';
717
718 main() {}
719 '''}),
696 ]; 720 ];
697 721
698 class Test { 722 class Test {
699 final String name; 723 final String name;
700 final Map sourceFiles; 724 final Map sourceFiles;
701 final Map preserializedSourceFiles; 725 final Map preserializedSourceFiles;
702 final Map unserializedSourceFiles; 726 final Map unserializedSourceFiles;
703 final int expectedErrorCount; 727 final int expectedErrorCount;
704 final int expectedWarningCount; 728 final int expectedWarningCount;
705 final int expectedHintCount; 729 final int expectedHintCount;
706 final int expectedInfoCount; 730 final int expectedInfoCount;
707 final bool checkedMode; 731 final bool checkedMode;
708 732
709 const Test( 733 const Test(
710 this.name, 734 this.name,
711 this.sourceFiles, 735 this.sourceFiles,
712 {this.preserializedSourceFiles, 736 {this.preserializedSourceFiles,
713 this.unserializedSourceFiles, 737 this.unserializedSourceFiles,
714 this.expectedErrorCount: 0, 738 this.expectedErrorCount: 0,
715 this.expectedWarningCount: 0, 739 this.expectedWarningCount: 0,
716 this.expectedHintCount: 0, 740 this.expectedHintCount: 0,
717 this.expectedInfoCount: 0, 741 this.expectedInfoCount: 0,
718 this.checkedMode: false}); 742 this.checkedMode: false});
719 } 743 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/resolution/constructors.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698