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

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

Issue 2256223002: Ensure resolution of metadata on parts 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 700 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 720
721 const Test('Metadata on part tags', const {},
722 preserializedSourceFiles: const {
723 'main.dart': '''
724 library main;
725
726 @deprecated
727 part 'a.dart';
728
729 main() {}
730 '''},
731 unserializedSourceFiles: const {
732 'a.dart': '''
733 part of main;
734 '''}),
735
736 const Test('Metadata on part-of tags', const {},
737 preserializedSourceFiles: const {
738 'main.dart': '''
739 library main;
740
741 part 'a.dart';
742
743 main() {}
744 '''},
745 unserializedSourceFiles: const {
746 'a.dart': '''
747 @deprecated
748 part of main;
749 '''}),
750
721 const Test('Ambiguous elements', const {}, 751 const Test('Ambiguous elements', const {},
722 preserializedSourceFiles: const { 752 preserializedSourceFiles: const {
723 'main.dart': ''' 753 'main.dart': '''
724 import 'a.dart'; 754 import 'a.dart';
725 import 'b.dart'; 755 import 'b.dart';
726 756
727 main() => new foo(); 757 main() => new foo();
728 ''', 758 ''',
729 'a.dart': ''' 759 'a.dart': '''
730 var foo; 760 var foo;
(...skipping 18 matching lines...) Expand all
749 this.name, 779 this.name,
750 this.sourceFiles, 780 this.sourceFiles,
751 {this.preserializedSourceFiles, 781 {this.preserializedSourceFiles,
752 this.unserializedSourceFiles, 782 this.unserializedSourceFiles,
753 this.expectedErrorCount: 0, 783 this.expectedErrorCount: 0,
754 this.expectedWarningCount: 0, 784 this.expectedWarningCount: 0,
755 this.expectedHintCount: 0, 785 this.expectedHintCount: 0,
756 this.expectedInfoCount: 0, 786 this.expectedInfoCount: 0,
757 this.checkedMode: false}); 787 this.checkedMode: false});
758 } 788 }
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