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