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

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: 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
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 681 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 const a = 1e+400; 692 const a = 1e+400;
693 main() => a; 693 main() => a;
694 ''', 694 ''',
695 }), 695 }),
696 696
697 const Test('Erroneous constructor', const {}, 697 const Test('Erroneous constructor', const {},
698 preserializedSourceFiles: const { 698 preserializedSourceFiles: const {
699 'main.dart': ''' 699 'main.dart': '''
700 main() => new Null(); 700 main() => new Null();
701 '''}), 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 '''}),
702 ]; 720 ];
703 721
704 class Test { 722 class Test {
705 final String name; 723 final String name;
706 final Map sourceFiles; 724 final Map sourceFiles;
707 final Map preserializedSourceFiles; 725 final Map preserializedSourceFiles;
708 final Map unserializedSourceFiles; 726 final Map unserializedSourceFiles;
709 final int expectedErrorCount; 727 final int expectedErrorCount;
710 final int expectedWarningCount; 728 final int expectedWarningCount;
711 final int expectedHintCount; 729 final int expectedHintCount;
712 final int expectedInfoCount; 730 final int expectedInfoCount;
713 final bool checkedMode; 731 final bool checkedMode;
714 732
715 const Test( 733 const Test(
716 this.name, 734 this.name,
717 this.sourceFiles, 735 this.sourceFiles,
718 {this.preserializedSourceFiles, 736 {this.preserializedSourceFiles,
719 this.unserializedSourceFiles, 737 this.unserializedSourceFiles,
720 this.expectedErrorCount: 0, 738 this.expectedErrorCount: 0,
721 this.expectedWarningCount: 0, 739 this.expectedWarningCount: 0,
722 this.expectedHintCount: 0, 740 this.expectedHintCount: 0,
723 this.expectedInfoCount: 0, 741 this.expectedInfoCount: 0,
724 this.checkedMode: false}); 742 this.checkedMode: false});
725 } 743 }
OLDNEW
« pkg/compiler/lib/src/compiler.dart ('K') | « pkg/compiler/lib/src/compiler.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698