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

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

Issue 2255163002: Support serialization of ambiguous elements. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: 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/serialization/keys.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 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 '''}), 710 '''}),
711 711
712 const Test('Metadata on exports', const {}, 712 const Test('Metadata on exports', const {},
713 preserializedSourceFiles: const { 713 preserializedSourceFiles: const {
714 'main.dart': ''' 714 'main.dart': '''
715 @deprecated 715 @deprecated
716 export 'main.dart'; 716 export 'main.dart';
717 717
718 main() {} 718 main() {}
719 '''}), 719 '''}),
720
721 const Test('Ambiguous elements', const {},
722 preserializedSourceFiles: const {
723 'main.dart': '''
724 import 'a.dart';
725 import 'b.dart';
726
727 main() => new foo();
728 ''',
729 'a.dart': '''
730 var foo;
731 ''',
732 'b.dart': '''
733 var foo;
734 ''',}),
720 ]; 735 ];
721 736
722 class Test { 737 class Test {
723 final String name; 738 final String name;
724 final Map sourceFiles; 739 final Map sourceFiles;
725 final Map preserializedSourceFiles; 740 final Map preserializedSourceFiles;
726 final Map unserializedSourceFiles; 741 final Map unserializedSourceFiles;
727 final int expectedErrorCount; 742 final int expectedErrorCount;
728 final int expectedWarningCount; 743 final int expectedWarningCount;
729 final int expectedHintCount; 744 final int expectedHintCount;
730 final int expectedInfoCount; 745 final int expectedInfoCount;
731 final bool checkedMode; 746 final bool checkedMode;
732 747
733 const Test( 748 const Test(
734 this.name, 749 this.name,
735 this.sourceFiles, 750 this.sourceFiles,
736 {this.preserializedSourceFiles, 751 {this.preserializedSourceFiles,
737 this.unserializedSourceFiles, 752 this.unserializedSourceFiles,
738 this.expectedErrorCount: 0, 753 this.expectedErrorCount: 0,
739 this.expectedWarningCount: 0, 754 this.expectedWarningCount: 0,
740 this.expectedHintCount: 0, 755 this.expectedHintCount: 0,
741 this.expectedInfoCount: 0, 756 this.expectedInfoCount: 0,
742 this.checkedMode: false}); 757 this.checkedMode: false});
743 } 758 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/serialization/keys.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698