OLD | NEW |
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 analyzer.test.src.summary.resynthesize_kernel_test; | 5 library analyzer.test.src.summary.resynthesize_kernel_test; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import 'package:analyzer/file_system/file_system.dart'; | 9 import 'package:analyzer/file_system/file_system.dart'; |
10 import 'package:analyzer/file_system/memory_file_system.dart'; | 10 import 'package:analyzer/file_system/memory_file_system.dart'; |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 } | 116 } |
117 | 117 |
118 @failingTest | 118 @failingTest |
119 test_class_constructor_field_formal_multiple_matching_fields() async { | 119 test_class_constructor_field_formal_multiple_matching_fields() async { |
120 // Fasta does not generate the class. | 120 // Fasta does not generate the class. |
121 // main() with a fatal error is generated instead. | 121 // main() with a fatal error is generated instead. |
122 await super.test_class_constructor_field_formal_multiple_matching_fields(); | 122 await super.test_class_constructor_field_formal_multiple_matching_fields(); |
123 } | 123 } |
124 | 124 |
125 @failingTest | 125 @failingTest |
126 test_class_interfaces_unresolved() async { | |
127 // Fasta generates additional `#errors` top-level variable. | |
128 await super.test_class_interfaces_unresolved(); | |
129 } | |
130 | |
131 @failingTest | |
132 @fastaProblem | |
133 test_class_mixins_unresolved() async { | |
134 // Fasta generates additional `#errors` top-level variable. | |
135 await super.test_class_mixins_unresolved(); | |
136 } | |
137 | |
138 @failingTest | |
139 @fastaProblem | |
140 test_class_supertype_unresolved() async { | |
141 // Fasta generates additional `#errors` top-level variable. | |
142 await super.test_class_supertype_unresolved(); | |
143 } | |
144 | |
145 @failingTest | |
146 @fastaProblem | 126 @fastaProblem |
147 test_class_type_parameters_bound() async { | 127 test_class_type_parameters_bound() async { |
148 // Fasta does not provide a flag for explicit vs. implicit Object bound. | 128 // Fasta does not provide a flag for explicit vs. implicit Object bound. |
149 await super.test_class_type_parameters_bound(); | 129 await super.test_class_type_parameters_bound(); |
150 } | 130 } |
151 | 131 |
152 @failingTest | 132 @failingTest |
153 @fastaProblem | 133 @fastaProblem |
154 test_closure_generic() async { | 134 test_closure_generic() async { |
155 // https://github.com/dart-lang/sdk/issues/30265 | 135 // https://github.com/dart-lang/sdk/issues/30265 |
156 await super.test_closure_generic(); | 136 await super.test_closure_generic(); |
157 } | 137 } |
158 | 138 |
159 @failingTest | 139 @failingTest |
160 test_closure_in_variable_declaration_in_part() async { | |
161 await super.test_closure_in_variable_declaration_in_part(); | |
162 } | |
163 | |
164 @failingTest | |
165 @fastaProblem | 140 @fastaProblem |
166 test_const_invalid_field_const() async { | 141 test_const_invalid_field_const() async { |
167 // Fasta generates additional `#errors` top-level variable. | 142 // Fasta generates additional `#errors` top-level variable. |
168 await super.test_const_invalid_field_const(); | 143 await super.test_const_invalid_field_const(); |
169 } | 144 } |
170 | 145 |
171 @failingTest | 146 @failingTest |
172 @fastaProblem | 147 @fastaProblem |
173 test_const_invalid_intLiteral() async { | 148 test_const_invalid_intLiteral() async { |
174 // https://github.com/dart-lang/sdk/issues/30266 | 149 // https://github.com/dart-lang/sdk/issues/30266 |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
465 test_field_propagatedType_final_dep_inPart() async { | 440 test_field_propagatedType_final_dep_inPart() async { |
466 await super.test_field_propagatedType_final_dep_inPart(); | 441 await super.test_field_propagatedType_final_dep_inPart(); |
467 } | 442 } |
468 | 443 |
469 @failingTest | 444 @failingTest |
470 test_field_propagatedType_final_noDep_instance() async { | 445 test_field_propagatedType_final_noDep_instance() async { |
471 await super.test_field_propagatedType_final_noDep_instance(); | 446 await super.test_field_propagatedType_final_noDep_instance(); |
472 } | 447 } |
473 | 448 |
474 @failingTest | 449 @failingTest |
475 test_function_entry_point_in_part() async { | |
476 await super.test_function_entry_point_in_part(); | |
477 } | |
478 | |
479 @failingTest | |
480 test_genericFunction_asGenericFunctionReturnType() async { | 450 test_genericFunction_asGenericFunctionReturnType() async { |
481 await super.test_genericFunction_asGenericFunctionReturnType(); | 451 await super.test_genericFunction_asGenericFunctionReturnType(); |
482 } | 452 } |
483 | 453 |
484 @failingTest | 454 @failingTest |
485 test_genericFunction_asParameterType() async { | 455 test_genericFunction_asParameterType() async { |
486 await super.test_genericFunction_asParameterType(); | 456 await super.test_genericFunction_asParameterType(); |
487 } | 457 } |
488 | 458 |
489 @failingTest | 459 @failingTest |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
573 .test_inferred_type_refers_to_method_function_typed_parameter_type(); | 543 .test_inferred_type_refers_to_method_function_typed_parameter_type(); |
574 } | 544 } |
575 | 545 |
576 @failingTest | 546 @failingTest |
577 test_inferred_type_refers_to_setter_function_typed_parameter_type() async { | 547 test_inferred_type_refers_to_setter_function_typed_parameter_type() async { |
578 await super | 548 await super |
579 .test_inferred_type_refers_to_setter_function_typed_parameter_type(); | 549 .test_inferred_type_refers_to_setter_function_typed_parameter_type(); |
580 } | 550 } |
581 | 551 |
582 @failingTest | 552 @failingTest |
583 test_inferredType_definedInSdkLibraryPart() async { | |
584 await super.test_inferredType_definedInSdkLibraryPart(); | |
585 } | |
586 | |
587 @failingTest | |
588 test_instantiateToBounds_boundRefersToEarlierTypeArgument() async { | 553 test_instantiateToBounds_boundRefersToEarlierTypeArgument() async { |
589 await super.test_instantiateToBounds_boundRefersToEarlierTypeArgument(); | 554 await super.test_instantiateToBounds_boundRefersToEarlierTypeArgument(); |
590 } | 555 } |
591 | 556 |
592 @failingTest | 557 @failingTest |
593 test_instantiateToBounds_boundRefersToItself() async { | 558 test_instantiateToBounds_boundRefersToItself() async { |
594 await super.test_instantiateToBounds_boundRefersToItself(); | 559 await super.test_instantiateToBounds_boundRefersToItself(); |
595 } | 560 } |
596 | 561 |
597 @failingTest | 562 @failingTest |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
650 } | 615 } |
651 | 616 |
652 @failingTest | 617 @failingTest |
653 @fastaProblem | 618 @fastaProblem |
654 test_invalid_setterParameter_fieldFormalParameter() async { | 619 test_invalid_setterParameter_fieldFormalParameter() async { |
655 // https://github.com/dart-lang/sdk/issues/30267 | 620 // https://github.com/dart-lang/sdk/issues/30267 |
656 await super.test_invalid_setterParameter_fieldFormalParameter(); | 621 await super.test_invalid_setterParameter_fieldFormalParameter(); |
657 } | 622 } |
658 | 623 |
659 @failingTest | 624 @failingTest |
660 @fastaProblem | |
661 test_invalid_setterParameter_fieldFormalParameter_self() async { | |
662 // https://github.com/dart-lang/sdk/issues/30267 | |
663 await super.test_invalid_setterParameter_fieldFormalParameter_self(); | |
664 } | |
665 | |
666 @failingTest | |
667 test_invalidUri_part_emptyUri() async { | 625 test_invalidUri_part_emptyUri() async { |
668 await super.test_invalidUri_part_emptyUri(); | 626 await super.test_invalidUri_part_emptyUri(); |
669 } | 627 } |
670 | 628 |
671 @failingTest | 629 @failingTest |
672 test_invalidUris() async { | 630 test_invalidUris() async { |
673 await super.test_invalidUris(); | 631 await super.test_invalidUris(); |
674 } | 632 } |
675 | 633 |
676 @failingTest | 634 @failingTest |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
764 test_parameter_covariant() async { | 722 test_parameter_covariant() async { |
765 await super.test_parameter_covariant(); | 723 await super.test_parameter_covariant(); |
766 } | 724 } |
767 | 725 |
768 @failingTest | 726 @failingTest |
769 test_parameter_covariant_inherited() async { | 727 test_parameter_covariant_inherited() async { |
770 await super.test_parameter_covariant_inherited(); | 728 await super.test_parameter_covariant_inherited(); |
771 } | 729 } |
772 | 730 |
773 @failingTest | 731 @failingTest |
774 test_parts() async { | |
775 await super.test_parts(); | |
776 } | |
777 | |
778 @failingTest | |
779 test_parts_invalidUri() async { | 732 test_parts_invalidUri() async { |
780 await super.test_parts_invalidUri(); | 733 await super.test_parts_invalidUri(); |
781 } | 734 } |
782 | 735 |
783 @failingTest | 736 @failingTest |
784 test_parts_invalidUri_nullStringValue() async { | 737 test_parts_invalidUri_nullStringValue() async { |
785 await super.test_parts_invalidUri_nullStringValue(); | 738 await super.test_parts_invalidUri_nullStringValue(); |
786 } | 739 } |
787 | 740 |
788 @failingTest | 741 @failingTest |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1043 test_unresolved_annotation_unnamedConstructorCall_noClass() async { | 996 test_unresolved_annotation_unnamedConstructorCall_noClass() async { |
1044 // https://github.com/dart-lang/sdk/issues/30267 | 997 // https://github.com/dart-lang/sdk/issues/30267 |
1045 await super.test_unresolved_annotation_unnamedConstructorCall_noClass(); | 998 await super.test_unresolved_annotation_unnamedConstructorCall_noClass(); |
1046 } | 999 } |
1047 | 1000 |
1048 @failingTest | 1001 @failingTest |
1049 test_unresolved_import() async { | 1002 test_unresolved_import() async { |
1050 await super.test_unresolved_import(); | 1003 await super.test_unresolved_import(); |
1051 } | 1004 } |
1052 | 1005 |
1053 @failingTest | |
1054 test_unresolved_part() async { | |
1055 await super.test_unresolved_part(); | |
1056 } | |
1057 | |
1058 @failingTest | |
1059 test_variable_getterInLib_setterInPart() async { | |
1060 await super.test_variable_getterInLib_setterInPart(); | |
1061 } | |
1062 | |
1063 @failingTest | |
1064 test_variable_getterInPart_setterInLib() async { | |
1065 await super.test_variable_getterInPart_setterInLib(); | |
1066 } | |
1067 | |
1068 @failingTest | |
1069 test_variable_getterInPart_setterInPart() async { | |
1070 await super.test_variable_getterInPart_setterInPart(); | |
1071 } | |
1072 | |
1073 @failingTest | |
1074 test_variable_propagatedType_final_dep_inPart() async { | |
1075 await super.test_variable_propagatedType_final_dep_inPart(); | |
1076 } | |
1077 | |
1078 @failingTest | |
1079 test_variable_setterInPart_getterInPart() async { | |
1080 await super.test_variable_setterInPart_getterInPart(); | |
1081 } | |
1082 | |
1083 String _getLibraryText(kernel.Library library) { | 1006 String _getLibraryText(kernel.Library library) { |
1084 StringBuffer buffer = new StringBuffer(); | 1007 StringBuffer buffer = new StringBuffer(); |
1085 new kernel.Printer(buffer, syntheticNames: new kernel.NameSystem()) | 1008 new kernel.Printer(buffer, syntheticNames: new kernel.NameSystem()) |
1086 .writeLibraryFile(library); | 1009 .writeLibraryFile(library); |
1087 return buffer.toString(); | 1010 return buffer.toString(); |
1088 } | 1011 } |
1089 } | 1012 } |
1090 | 1013 |
1091 class _FileSystemAdaptor implements FileSystem { | 1014 class _FileSystemAdaptor implements FileSystem { |
1092 final ResourceProvider provider; | 1015 final ResourceProvider provider; |
(...skipping 26 matching lines...) Expand all Loading... |
1119 @override | 1042 @override |
1120 Future<List<int>> readAsBytes() async { | 1043 Future<List<int>> readAsBytes() async { |
1121 return file.readAsBytesSync(); | 1044 return file.readAsBytesSync(); |
1122 } | 1045 } |
1123 | 1046 |
1124 @override | 1047 @override |
1125 Future<String> readAsString() async { | 1048 Future<String> readAsString() async { |
1126 return file.readAsStringSync(); | 1049 return file.readAsStringSync(); |
1127 } | 1050 } |
1128 } | 1051 } |
OLD | NEW |