OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 (function() { | 5 (function() { |
6 'use strict'; | 6 'use strict'; |
7 | 7 |
8 let _isolate_helper = dart_library.import('dart/_isolate_helper'); | 8 let dart_sdk = dart_library.import('dart_sdk'); |
9 _isolate_helper.startRootIsolate(function() {}, []); | 9 dart_sdk._isolate_helper.startRootIsolate(function() {}, []); |
10 let async_helper = dart_library.import('async_helper/async_helper'); | 10 let async_helper = dart_library.import('async_helper').async_helper; |
11 | 11 |
12 // TODO(jmesserly): separate StrongModeError from other errors. | 12 // TODO(jmesserly): separate StrongModeError from other errors. |
13 let status = { | 13 let status = { |
14 'language': { | 14 expectedFailures: new Set([ |
15 expectedFailures: new Set([ | 15 'arithmetic2_test', |
16 'arithmetic2_test', | 16 'assert_with_type_test_or_cast_test', |
17 'assert_with_type_test_or_cast_test', | 17 'assertion_test', |
18 'assertion_test', | 18 'async_star_await_pauses_test', |
19 'async_star_await_pauses_test', | 19 'async_star_cancel_while_paused_test', |
20 'async_star_cancel_while_paused_test', | 20 'async_star_regression_fisk_test', |
21 'async_star_regression_fisk_test', | 21 'async_switch_test', |
22 'async_switch_test', | 22 'asyncstar_throw_in_catch_test', |
23 'asyncstar_throw_in_catch_test', | 23 'await_future_test', |
24 'await_future_test', | 24 'bit_operations_test_none_multi', |
25 'bit_operations_test_none_multi', | 25 'bit_shift_test', |
26 'bit_shift_test', | 26 'bool_test', |
27 'bool_test', | 27 'bound_closure_equality_test', |
28 'bound_closure_equality_test', | 28 'call_closurization_test', |
29 'call_closurization_test', | 29 'call_function_apply_test', |
30 'call_function_apply_test', | 30 'call_operator_test', |
31 'call_operator_test', | 31 'call_property_test', |
32 'call_property_test', | 32 'call_test', |
33 'call_test', | 33 'call_this_test', |
34 'call_this_test', | 34 'call_through_null_getter_test', |
35 'call_through_null_getter_test', | 35 'call_with_no_such_method_test', |
36 'call_with_no_such_method_test', | 36 'canonical_const2_test', |
37 'canonical_const2_test', | 37 'canonical_const_test', |
38 'canonical_const_test', | 38 'cascade_precedence_test', |
39 'cascade_precedence_test', | 39 'cast_test_01_multi', |
40 'cast_test_01_multi', | 40 'cast_test_02_multi', |
41 'cast_test_02_multi', | 41 'cast_test_03_multi', |
42 'cast_test_03_multi', | 42 'cast_test_07_multi', |
43 'cast_test_07_multi', | 43 'cast_test_10_multi', |
44 'cast_test_10_multi', | 44 'cast_test_12_multi', |
45 'cast_test_12_multi', | 45 'cast_test_13_multi', |
46 'cast_test_13_multi', | 46 'cast_test_14_multi', |
47 'cast_test_14_multi', | 47 'cast_test_15_multi', |
48 'cast_test_15_multi', | 48 'cha_deopt1_test', |
49 'cha_deopt1_test', | 49 'cha_deopt2_test', |
50 'cha_deopt2_test', | 50 'cha_deopt3_test', |
51 'cha_deopt3_test', | 51 'classes_static_method_clash_test', |
52 'classes_static_method_clash_test', | 52 'closure_call_wrong_argument_count_negative_test', |
53 'closure_call_wrong_argument_count_negative_test', | 53 'closure_in_constructor_test', |
54 'closure_in_constructor_test', | 54 'closure_with_super_field_test', |
55 'closure_with_super_field_test', | 55 'closures_initializer_test', |
56 'closures_initializer_test', | 56 'code_after_try_is_executed_test_01_multi', |
57 'code_after_try_is_executed_test_01_multi', | 57 'compile_time_constant10_test_none_multi', |
58 'compile_time_constant10_test_none_multi', | 58 'compile_time_constant_a_test', |
59 'compile_time_constant_a_test', | 59 'compile_time_constant_b_test', |
60 'compile_time_constant_b_test', | 60 'compile_time_constant_d_test', |
61 'compile_time_constant_d_test', | 61 'compile_time_constant_i_test', |
62 'compile_time_constant_i_test', | 62 'compile_time_constant_k_test_none_multi', |
63 'compile_time_constant_k_test_none_multi', | 63 'compile_time_constant_o_test_none_multi', |
64 'compile_time_constant_o_test_none_multi', | 64 'const_constructor3_test_03_multi', |
65 'const_constructor3_test_03_multi', | 65 'const_escape_frog_test', |
66 'const_escape_frog_test', | 66 'const_evaluation_test_01_multi', |
67 'const_evaluation_test_01_multi', | 67 'const_map4_test', |
68 'const_map4_test', | 68 'const_switch_test_02_multi', |
69 'const_switch_test_02_multi', | 69 'const_switch_test_04_multi', |
70 'const_switch_test_04_multi', | 70 'constructor11_test', |
71 'constructor11_test', | 71 'constructor12_test', |
72 'constructor12_test', | 72 'ct_const_test', |
73 'ct_const_test', | 73 'cyclic_type2_test', |
74 'cyclic_type2_test', | 74 'cyclic_type_test_00_multi', |
75 'cyclic_type_test_00_multi', | 75 'cyclic_type_test_01_multi', |
76 'cyclic_type_test_01_multi', | 76 'cyclic_type_test_02_multi', |
77 'cyclic_type_test_02_multi', | 77 'cyclic_type_test_03_multi', |
78 'cyclic_type_test_03_multi', | 78 'cyclic_type_test_04_multi', |
79 'cyclic_type_test_04_multi', | 79 'cyclic_type_variable_test_none_multi', |
80 'cyclic_type_variable_test_none_multi', | 80 'deferred_call_empty_before_load_test', |
81 'deferred_call_empty_before_load_test', | 81 'deferred_closurize_load_library_test', |
82 'deferred_closurize_load_library_test', | 82 'deferred_constant_list_test', |
83 'deferred_constant_list_test', | 83 'deferred_function_type_test', |
84 'deferred_function_type_test', | 84 'deferred_inlined_test', |
85 'deferred_inlined_test', | 85 'deferred_load_inval_code_test', |
86 'deferred_load_inval_code_test', | 86 'deferred_mixin_test', |
87 'deferred_mixin_test', | 87 'deferred_no_such_method_test', |
88 'deferred_no_such_method_test', | 88 'deferred_not_loaded_check_test', |
89 'deferred_not_loaded_check_test', | 89 'deferred_only_constant_test', |
90 'deferred_only_constant_test', | 90 'deferred_optimized_test', |
91 'deferred_optimized_test', | 91 'deferred_redirecting_factory_test', |
92 'deferred_redirecting_factory_test', | 92 'deferred_regression_22995_test', |
93 'deferred_regression_22995_test', | 93 'deferred_shadow_load_library_test', |
94 'deferred_shadow_load_library_test', | 94 'deferred_shared_and_unshared_classes_test', |
95 'deferred_shared_and_unshared_classes_test', | 95 'deferred_static_seperate_test', |
96 'deferred_static_seperate_test', | 96 'double_int_to_string_test', |
97 'double_int_to_string_test', | 97 'double_to_string_test', |
98 'double_to_string_test', | 98 'dynamic_test', |
99 'dynamic_test', | 99 'enum_mirror_test', |
100 'enum_mirror_test', | 100 'exception_test', |
101 'exception_test', | 101 'execute_finally6_test', |
102 'execute_finally6_test', | 102 'expect_test', |
103 'expect_test', | 103 'extends_test_lib', |
104 'extends_test_lib', | 104 'external_test_10_multi', |
105 'external_test_10_multi', | 105 'external_test_13_multi', |
106 'external_test_13_multi', | 106 'external_test_20_multi', |
107 'external_test_20_multi', | 107 'f_bounded_quantification3_test', |
108 'f_bounded_quantification3_test', | 108 'factory_type_parameter_test', |
109 'factory_type_parameter_test', | 109 'fast_method_extraction_test', |
110 'fast_method_extraction_test', | 110 'field_increment_bailout_test', |
111 'field_increment_bailout_test', | 111 'field_optimization3_test', |
112 'field_optimization3_test', | 112 'field_test', |
113 'field_test', | 113 'final_syntax_test_08_multi', |
114 'final_syntax_test_08_multi', | 114 'first_class_types_literals_test_01_multi', |
115 'first_class_types_literals_test_01_multi', | 115 'first_class_types_literals_test_02_multi', |
116 'first_class_types_literals_test_02_multi', | 116 'first_class_types_literals_test_none_multi', |
117 'first_class_types_literals_test_none_multi', | 117 'first_class_types_test', |
118 'first_class_types_test', | 118 'for_in2_test', |
119 'for_in2_test', | 119 'for_variable_capture_test', |
120 'for_variable_capture_test', | 120 'function_propagation_test', |
121 'function_propagation_test', | 121 'function_subtype0_test', |
122 'function_subtype0_test', | 122 'function_subtype1_test', |
123 'function_subtype1_test', | 123 'function_subtype2_test', |
124 'function_subtype2_test', | 124 'function_subtype3_test', |
125 'function_subtype3_test', | 125 'function_subtype_bound_closure0_test', |
126 'function_subtype_bound_closure0_test', | 126 'function_subtype_bound_closure1_test', |
127 'function_subtype_bound_closure1_test', | 127 'function_subtype_bound_closure2_test', |
128 'function_subtype_bound_closure2_test', | 128 'function_subtype_bound_closure3_test', |
129 'function_subtype_bound_closure3_test', | 129 'function_subtype_bound_closure4_test', |
130 'function_subtype_bound_closure4_test', | 130 'function_subtype_bound_closure5_test', |
131 'function_subtype_bound_closure5_test', | 131 'function_subtype_bound_closure5a_test', |
132 'function_subtype_bound_closure5a_test', | 132 'function_subtype_bound_closure6_test', |
133 'function_subtype_bound_closure6_test', | 133 'function_subtype_call0_test', |
134 'function_subtype_call0_test', | 134 'function_subtype_call1_test', |
135 'function_subtype_call1_test', | 135 'function_subtype_call2_test', |
136 'function_subtype_call2_test', | 136 'function_subtype_cast0_test', |
137 'function_subtype_cast0_test', | 137 'function_subtype_cast1_test', |
138 'function_subtype_cast1_test', | 138 'function_subtype_cast2_test', |
139 'function_subtype_cast2_test', | 139 'function_subtype_cast3_test', |
140 'function_subtype_cast3_test', | 140 'function_subtype_factory0_test', |
141 'function_subtype_factory0_test', | 141 'function_subtype_inline0_test', |
142 'function_subtype_inline0_test', | 142 'function_subtype_local0_test', |
143 'function_subtype_local0_test', | 143 'function_subtype_local1_test', |
144 'function_subtype_local1_test', | 144 'function_subtype_local2_test', |
145 'function_subtype_local2_test', | 145 'function_subtype_local3_test', |
146 'function_subtype_local3_test', | 146 'function_subtype_local4_test', |
147 'function_subtype_local4_test', | 147 'function_subtype_local5_test', |
148 'function_subtype_local5_test', | 148 'function_subtype_named1_test', |
149 'function_subtype_named1_test', | 149 'function_subtype_named2_test', |
150 'function_subtype_named2_test', | 150 'function_subtype_not0_test', |
151 'function_subtype_not0_test', | 151 'function_subtype_not1_test', |
152 'function_subtype_not1_test', | 152 'function_subtype_not2_test', |
153 'function_subtype_not2_test', | 153 'function_subtype_not3_test', |
154 'function_subtype_not3_test', | 154 'function_subtype_optional1_test', |
155 'function_subtype_optional1_test', | 155 'function_subtype_optional2_test', |
156 'function_subtype_optional2_test', | 156 'function_subtype_top_level0_test', |
157 'function_subtype_top_level0_test', | 157 'function_subtype_top_level1_test', |
158 'function_subtype_top_level1_test', | 158 'function_subtype_typearg0_test', |
159 'function_subtype_typearg0_test', | 159 'function_subtype_typearg2_test', |
160 'function_subtype_typearg2_test', | 160 'function_subtype_typearg4_test', |
161 'function_subtype_typearg4_test', | 161 'function_type_alias2_test', |
162 'function_type_alias2_test', | 162 'function_type_alias3_test', |
163 'function_type_alias3_test', | 163 'function_type_alias4_test', |
164 'function_type_alias4_test', | 164 'function_type_alias6_test_none_multi', |
165 'function_type_alias6_test_none_multi', | 165 'function_type_alias_test', |
166 'function_type_alias_test', | 166 'function_type_call_getter_test', |
167 'function_type_call_getter_test', | 167 'gc_test', |
168 'gc_test', | 168 'generic2_test', |
169 'generic2_test', | 169 'generic_deep_test', |
170 'generic_deep_test', | 170 'generic_field_mixin2_test', |
171 'generic_field_mixin2_test', | 171 'generic_field_mixin3_test', |
172 'generic_field_mixin3_test', | 172 'generic_field_mixin4_test', |
173 'generic_field_mixin4_test', | 173 'generic_field_mixin5_test', |
174 'generic_field_mixin5_test', | 174 'generic_field_mixin_test', |
175 'generic_field_mixin_test', | 175 'generic_inheritance_test', |
176 'generic_inheritance_test', | 176 'generic_instanceof2_test', |
177 'generic_instanceof2_test', | 177 'generic_instanceof3_test', |
178 'generic_instanceof3_test', | 178 'generic_instanceof_test', |
179 'generic_instanceof_test', | 179 'generic_is_check_test', |
180 'generic_is_check_test', | 180 'generic_native_test', |
181 'generic_native_test', | 181 'generic_parameterized_extends_test', |
182 'generic_parameterized_extends_test', | 182 'getter_closure_execution_order_test', |
183 'getter_closure_execution_order_test', | 183 'getter_override2_test_00_multi', |
184 'getter_override2_test_00_multi', | 184 'getters_setters_test', |
185 'getters_setters_test', | 185 'hash_code_mangling_test', |
186 'hash_code_mangling_test', | 186 'identical_closure2_test', |
187 'identical_closure2_test', | 187 'if_null_behavior_test_14_multi', |
188 'if_null_behavior_test_14_multi', | 188 'infinite_switch_label_test', |
189 'infinite_switch_label_test', | 189 'infinity_test', |
190 'infinity_test', | 190 'instance_creation_in_function_annotation_test', |
191 'instance_creation_in_function_annotation_test', | 191 'instanceof2_test', |
192 'instanceof2_test', | 192 'instanceof4_test_01_multi', |
193 'instanceof4_test_01_multi', | 193 'instanceof4_test_none_multi', |
194 'instanceof4_test_none_multi', | 194 'instanceof_optimized_test', |
195 'instanceof_optimized_test', | 195 'int_test', |
196 'int_test', | 196 'integer_division_by_zero_test', |
197 'integer_division_by_zero_test', | 197 'interceptor_test', |
198 'interceptor_test', | 198 'is_nan_test', |
199 'is_nan_test', | 199 'issue10747_test', |
200 'issue10747_test', | 200 'issue13179_test', |
201 'issue13179_test', | 201 'issue21079_test', |
202 'issue21079_test', | 202 'issue21957_test', |
203 'issue21957_test', | 203 'issue_1751477_test', |
204 'issue_1751477_test', | 204 'issue_22780_test_01_multi', |
205 'issue_22780_test_01_multi', | 205 'issue_23914_test', |
206 'issue_23914_test', | 206 'js_properties_test', |
207 'js_properties_test', | 207 'lazy_static3_test', |
208 'lazy_static3_test', | 208 'least_upper_bound_expansive_test_none_multi', |
209 'least_upper_bound_expansive_test_none_multi', | 209 'left_shift_test', |
210 'left_shift_test', | 210 'list_is_test', |
211 'list_is_test', | 211 'list_literal3_test', |
212 'list_literal3_test', | 212 'many_generic_instanceof_test', |
213 'many_generic_instanceof_test', | 213 'map_literal10_test', |
214 'map_literal10_test', | 214 'map_literal7_test', |
215 'map_literal7_test', | 215 'memory_swap_test', |
216 'memory_swap_test', | 216 'method_invocation_test', |
217 'method_invocation_test', | 217 'mint_arithmetic_test', |
218 'mint_arithmetic_test', | 218 'mixin_forwarding_constructor3_test', |
219 'mixin_forwarding_constructor3_test', | 219 'mixin_generic_test', |
220 'mixin_generic_test', | 220 'mixin_implements_test', |
221 'mixin_implements_test', | 221 'mixin_issue10216_2_test', |
222 'mixin_issue10216_2_test', | 222 'mixin_mixin2_test', |
223 'mixin_mixin2_test', | 223 'mixin_mixin3_test', |
224 'mixin_mixin3_test', | 224 'mixin_mixin4_test', |
225 'mixin_mixin4_test', | 225 'mixin_mixin5_test', |
226 'mixin_mixin5_test', | 226 'mixin_mixin6_test', |
227 'mixin_mixin6_test', | 227 'mixin_mixin7_test', |
228 'mixin_mixin7_test', | 228 'mixin_mixin_bound2_test', |
229 'mixin_mixin_bound2_test', | 229 'mixin_mixin_bound_test', |
230 'mixin_mixin_bound_test', | 230 'mixin_mixin_test', |
231 'mixin_mixin_test', | 231 'mixin_regress_13688_test', |
232 'mixin_regress_13688_test', | 232 'mixin_type_parameter1_test', |
233 'mixin_type_parameter1_test', | 233 'mixin_type_parameter2_test', |
234 'mixin_type_parameter2_test', | 234 'mixin_type_parameter3_test', |
235 'mixin_type_parameter3_test', | 235 'modulo_test', |
236 'modulo_test', | 236 'named_argument_test', |
237 'named_argument_test', | 237 'named_parameter_clash_test', |
238 'named_parameter_clash_test', | 238 'namer2_test', |
239 'namer2_test', | 239 'nan_identical_test', |
240 'nan_identical_test', | 240 'nested_switch_label_test', |
241 'nested_switch_label_test', | 241 'no_such_method3_test', |
242 'no_such_method3_test', | 242 'no_such_method_empty_selector_test', |
243 'no_such_method_empty_selector_test', | 243 'no_such_method_subtype_test', |
244 'no_such_method_subtype_test', | 244 'null_no_such_method_test', |
245 'null_no_such_method_test', | 245 'number_identifier_test_05_multi', |
246 'number_identifier_test_05_multi', | 246 'number_identity2_test', |
247 'number_identity2_test', | 247 'numbers_test', |
248 'numbers_test', | 248 'operator4_test', |
249 'operator4_test', | 249 'operator_test', |
250 'operator_test', | 250 'optimized_hoisting_checked_mode_assert_test', |
251 'optimized_hoisting_checked_mode_assert_test', | 251 'positive_bit_operations_test', |
252 'positive_bit_operations_test', | 252 'prefix_test1', |
253 'prefix_test1', | 253 'prefix_test2', |
254 'prefix_test2', | 254 'redirecting_factory_reflection_test', |
255 'redirecting_factory_reflection_test', | 255 'regress_13462_0_test', |
256 'regress_13462_0_test', | 256 'regress_13462_1_test', |
257 'regress_13462_1_test', | 257 'regress_14105_test', |
258 'regress_14105_test', | 258 'regress_16640_test', |
259 'regress_16640_test', | 259 'regress_18535_test', |
260 'regress_18535_test', | 260 'regress_21795_test', |
261 'regress_21795_test', | 261 'regress_22443_test', |
262 'regress_22443_test', | 262 'regress_22666_test', |
263 'regress_22666_test', | 263 'regress_22719_test', |
264 'regress_22719_test', | 264 'regress_23650_test', |
265 'regress_23650_test', | 265 'regress_r24720_test', |
266 'regress_r24720_test', | 266 'setter_no_getter_test_01_multi', |
267 'setter_no_getter_test_01_multi', | 267 'smi_type_test', |
268 'smi_type_test', | 268 'stack_overflow_stacktrace_test', |
269 'stack_overflow_stacktrace_test', | 269 'stack_overflow_test', |
270 'stack_overflow_test', | 270 'stack_trace_test', |
271 'stack_trace_test', | 271 'stacktrace_rethrow_error_test_none_multi', |
272 'stacktrace_rethrow_error_test_none_multi', | 272 'stacktrace_rethrow_error_test_withtraceparameter_multi', |
273 'stacktrace_rethrow_error_test_withtraceparameter_multi', | 273 'stacktrace_test', |
274 'stacktrace_test', | 274 'string_interpolate_null_test', |
275 'string_interpolate_null_test', | 275 'string_interpolation_newline_test', |
276 'string_interpolation_newline_test', | 276 'super_field_2_test', |
277 'super_field_2_test', | 277 'super_field_test', |
278 'super_field_test', | 278 'super_operator_index3_test', |
279 'super_operator_index3_test', | 279 'super_operator_index4_test', |
280 'super_operator_index4_test', | 280 'switch_label2_test', |
281 'switch_label2_test', | 281 'switch_label_test', |
282 'switch_label_test', | 282 'switch_try_catch_test', |
283 'switch_try_catch_test', | 283 'symbol_literal_test_none_multi', |
284 'symbol_literal_test_none_multi', | 284 'sync_generator1_test_none_multi', |
285 'sync_generator1_test_none_multi', | 285 'throwing_lazy_variable_test', |
286 'throwing_lazy_variable_test', | 286 'top_level_non_prefixed_library_test', |
287 'top_level_non_prefixed_library_test', | 287 'truncdiv_test', |
288 'truncdiv_test', | 288 'type_argument_substitution_test', |
289 'type_argument_substitution_test', | 289 'type_promotion_functions_test_none_multi', |
290 'type_promotion_functions_test_none_multi', | 290 'type_variable_closure2_test', |
291 'type_variable_closure2_test', | 291 'type_variable_field_initializer_closure_test', |
292 'type_variable_field_initializer_closure_test', | 292 'type_variable_field_initializer_test', |
293 'type_variable_field_initializer_test', | 293 'type_variable_nested_test', |
294 'type_variable_nested_test', | 294 'type_variable_typedef_test', |
295 'type_variable_typedef_test', | 295 'typedef_is_test', |
296 'typedef_is_test', | 296 |
297 | 297 'bit_operations_test_01_multi', |
298 'bit_operations_test_01_multi', | 298 'bit_operations_test_02_multi', |
299 'bit_operations_test_02_multi', | 299 'bit_operations_test_03_multi', |
300 'bit_operations_test_03_multi', | 300 'bit_operations_test_04_multi', |
301 'bit_operations_test_04_multi', | 301 'bool_condition_check_test_01_multi', |
302 'bool_condition_check_test_01_multi', | 302 'deferred_constraints_constants_test_none_multi', |
303 'deferred_constraints_constants_test_none_multi', | 303 'deferred_constraints_constants_test_reference_after_load_multi', |
304 'deferred_constraints_constants_test_reference_after_load_multi', | 304 'deferred_constraints_type_annotation_test_new_generic1_multi', |
305 'deferred_constraints_type_annotation_test_new_generic1_multi', | 305 'deferred_constraints_type_annotation_test_new_multi', |
306 'deferred_constraints_type_annotation_test_new_multi', | 306 'deferred_constraints_type_annotation_test_none_multi', |
307 'deferred_constraints_type_annotation_test_none_multi', | 307 'deferred_constraints_type_annotation_test_static_method_multi', |
308 'deferred_constraints_type_annotation_test_static_method_multi', | 308 'deferred_constraints_type_annotation_test_type_annotation_non_deferred_mu
lti', |
309 'deferred_constraints_type_annotation_test_type_annotation_non_deferred_
multi', | 309 'deferred_load_constants_test_none_multi', |
310 'deferred_load_constants_test_none_multi', | 310 'deferred_load_library_wrong_args_test_01_multi', |
311 'deferred_load_library_wrong_args_test_01_multi', | 311 'deferred_load_library_wrong_args_test_none_multi', |
312 'deferred_load_library_wrong_args_test_none_multi', | 312 'external_test_21_multi', |
313 'external_test_21_multi', | 313 'external_test_24_multi', |
314 'external_test_24_multi', | 314 'main_not_a_function_test_01_multi', |
315 'main_not_a_function_test_01_multi', | 315 'multiline_newline_test_04_multi', |
316 'multiline_newline_test_04_multi', | 316 'multiline_newline_test_05_multi', |
317 'multiline_newline_test_05_multi', | 317 'multiline_newline_test_06_multi', |
318 'multiline_newline_test_06_multi', | 318 'multiline_newline_test_none_multi', |
319 'multiline_newline_test_none_multi', | 319 'no_main_test_01_multi', |
320 'no_main_test_01_multi', | 320 |
321 | 321 // https://github.com/dart-lang/sdk/issues/26123 |
322 // https://github.com/dart-lang/sdk/issues/26123 | 322 'bad_raw_string_negative_test', |
323 'bad_raw_string_negative_test', | 323 |
324 | 324 // https://github.com/dart-lang/sdk/issues/26124 |
325 // https://github.com/dart-lang/sdk/issues/26124 | 325 'prefix10_negative_test', |
326 'prefix10_negative_test' | 326 |
327 ]), | 327 |
328 helpers: new Set([ | 328 // TODO(vsm): Right shift should not propagate sign |
329 'library_prefixes_test1', | 329 // https://github.com/dart-lang/dev_compiler/issues/446 |
330 'library_prefixes_test2', | 330 'float32x4_sign_mask_test', |
331 'top_level_prefixed_library_test', | 331 'int32x4_sign_mask_test', |
332 ]) | 332 |
333 }, | 333 // No bigint or int64 support |
334 'lib/typed_data': { | 334 'int32x4_bigint_test', |
335 expectedFailures: new Set([ | 335 'int64_list_load_store_test', |
336 // TODO(vsm): Right shift should not propagate sign | 336 'typed_data_hierarchy_int64_test', |
337 // https://github.com/dart-lang/dev_compiler/issues/446 | 337 |
338 'float32x4_sign_mask_test', | 338 // TODO(vsm): List.toString is different in DDC |
339 'int32x4_sign_mask_test', | 339 // https://github.com/dart-lang/dev_compiler/issues/445 |
340 | 340 'setRange_1_test', |
341 // No bigint or int64 support | 341 'setRange_2_test', |
342 'int32x4_bigint_test', | 342 'setRange_3_test', |
343 'int64_list_load_store_test', | 343 'setRange_4_test', |
344 'typed_data_hierarchy_int64_test', | 344 'setRange_5_test', |
345 | 345 |
346 // TODO(vsm): List.toString is different in DDC | 346 // TODO(vsm): Triage further |
347 // https://github.com/dart-lang/dev_compiler/issues/445 | 347 // exports._GeneratorIterable$ is not a function |
348 'setRange_1_test', | 348 'typed_data_list_test', |
349 'setRange_2_test', | 349 'byte_data_test', |
350 'setRange_3_test', | 350 'endianness_test' |
351 'setRange_4_test', | 351 ]), |
352 'setRange_5_test', | 352 helpers: new Set([ |
353 | 353 'library_prefixes_test1', |
354 // TODO(vsm): Triage further | 354 'library_prefixes_test2', |
355 // exports._GeneratorIterable$ is not a function | 355 'top_level_prefixed_library_test', |
356 'typed_data_list_test', | 356 ]) |
357 ]), | 357 }; |
358 helpers: new Set([ | 358 |
359 ]) | 359 let languageTestPattern = new RegExp('(.*_test.*)'); |
| 360 for (let testFile of dart_library.libraries()) { |
| 361 let match = languageTestPattern.exec(testFile); |
| 362 if (match != null) { |
| 363 let name = match[1]; |
| 364 |
| 365 if (status.helpers.has(name)) { |
| 366 // These are not top-level tests. They are used by other tests. |
| 367 continue; |
| 368 } |
| 369 |
| 370 // These two tests are special because they use package:unittest. |
| 371 // We run them below. |
| 372 if (name == 'async_await_test' || |
| 373 name.startsWith('async_star_test')) { |
| 374 continue; |
| 375 } |
| 376 |
| 377 // TODO(jmesserly): figure out why this test is hanging. |
| 378 if (name == 'async_star_cancel_and_throw_in_finally_test') { |
| 379 console.debug('Skipping known timeout: ' + name); |
| 380 continue; |
| 381 } |
| 382 |
| 383 // TODO(jmesserly): better tracking of async test failures. |
| 384 // For now we skip tests that expect failure. |
| 385 if (status.expectedFailures.has(name)) { |
| 386 console.debug('Skipping known failure: ' + name); |
| 387 continue; |
| 388 } |
| 389 |
| 390 test(name, (done) => { |
| 391 async_helper.asyncTestInitialize(done); |
| 392 console.debug('Running test: ' + name); |
| 393 |
| 394 let mainLibrary = dart_library.import(name)[name]; |
| 395 if (/negative_test/.test(name)) { |
| 396 assert.throws(mainLibrary.main); |
| 397 } else { |
| 398 mainLibrary.main(); |
| 399 } |
| 400 |
| 401 if (!async_helper.asyncTestStarted) done(); |
| 402 }); |
360 } | 403 } |
361 }; | |
362 | |
363 let testSuites = ['language', 'lib/typed_data']; | |
364 | |
365 for (let s of testSuites) { | |
366 suite(s, () => { | |
367 let languageTestPattern = new RegExp(s + '/(.*_test.*)'); | |
368 for (let testFile of dart_library.libraries()) { | |
369 let match = languageTestPattern.exec(testFile); | |
370 if (match != null) { | |
371 let name = match[1]; | |
372 | |
373 if (status[s].helpers.has(name)) { | |
374 // These are not top-level tests. They are used by other tests. | |
375 continue; | |
376 } | |
377 | |
378 // These two tests are special because they use package:unittest. | |
379 // We run them below. | |
380 if (name == 'async_await_test' || | |
381 name.startsWith('async_star_test')) { | |
382 continue; | |
383 } | |
384 | |
385 // TODO(jmesserly): figure out why this test is hanging. | |
386 if (name == 'async_star_cancel_and_throw_in_finally_test') { | |
387 console.debug('Skipping known timeout: ' + name); | |
388 continue; | |
389 } | |
390 | |
391 // TODO(jmesserly): better tracking of async test failures. | |
392 // For now we skip tests that expect failure. | |
393 if (status[s].expectedFailures.has(name)) { | |
394 console.debug('Skipping known failure: ' + name); | |
395 continue; | |
396 } | |
397 | |
398 test(name, (done) => { | |
399 async_helper.asyncTestInitialize(done); | |
400 console.debug('Running ' + s + ' test: ' + name); | |
401 | |
402 let mainLibrary = dart_library.import(s + '/' + name); | |
403 if (/negative_test/.test(name)) { | |
404 assert.throws(mainLibrary.main); | |
405 } else { | |
406 mainLibrary.main(); | |
407 } | |
408 | |
409 if (!async_helper.asyncTestStarted) done(); | |
410 }); | |
411 } | |
412 } | |
413 }); | |
414 } | 404 } |
415 | 405 |
416 dart_library.import('language/async_await_test_none_multi').main(); | 406 (dart_library.import('async_await_test_none_multi') |
| 407 .async_await_test_none_multi.main()); |
417 // TODO(vsm): Re-enable. | 408 // TODO(vsm): Re-enable. |
418 // See https://github.com/dart-lang/dev_compiler/issues/456 | 409 // See https://github.com/dart-lang/dev_compiler/issues/456 |
419 // dart_library.import('language/async_star_test_none_multi').main(); | 410 // (dart_library.import('async_star_test_none_multi') |
| 411 // .async_star_test_none_multi.main()); |
420 | 412 |
421 })(); | 413 })(); |
OLD | NEW |