| 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 define(['dart_sdk', 'async_helper', 'expect', 'unittest', 'is', 'require'], | 5 define(['dart_sdk', 'async_helper', 'expect', 'unittest', 'is', 'require'], |
| 6 function(dart_sdk, async_helper, expect, unittest, is, require) { | 6 function(dart_sdk, async_helper, expect, unittest, is, require) { |
| 7 'use strict'; | 7 'use strict'; |
| 8 | 8 |
| 9 async_helper = async_helper.async_helper; | 9 async_helper = async_helper.async_helper; |
| 10 let minitest = expect.minitest; | 10 let minitest = expect.minitest; |
| 11 let mochaOnError = window.onerror; | 11 let mochaOnError = window.onerror; |
| 12 dart_sdk.dart.trapRuntimeErrors(false); | 12 dart_sdk.dart.trapRuntimeErrors(false); |
| 13 dart_sdk.dart.ignoreWhitelistedErrors(false); | 13 dart_sdk.dart.ignoreWhitelistedErrors(false); |
| 14 dart_sdk.dart.failForWeakModeIsChecks(false); |
| 14 dart_sdk._isolate_helper.startRootIsolate(function() {}, []); | 15 dart_sdk._isolate_helper.startRootIsolate(function() {}, []); |
| 15 // Make it easier to debug test failures and required for formatter test that | 16 // Make it easier to debug test failures and required for formatter test that |
| 16 // assumes custom formatters are enabled. | 17 // assumes custom formatters are enabled. |
| 17 dart_sdk._debugger.registerDevtoolsFormatter(); | 18 dart_sdk._debugger.registerDevtoolsFormatter(); |
| 18 | 19 |
| 19 let html_config = unittest.html_config; | 20 let html_config = unittest.html_config; |
| 20 // Test attributes are a list of strings, or a string for a single | 21 // Test attributes are a list of strings, or a string for a single |
| 21 // attribute. Valid attributes are: | 22 // attribute. Valid attributes are: |
| 22 // | 23 // |
| 23 // 'pass' - test passes (default) | 24 // 'pass' - test passes (default) |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 'cyclic_type_test_03_multi': fail, | 126 'cyclic_type_test_03_multi': fail, |
| 126 'cyclic_type_test_04_multi': fail, | 127 'cyclic_type_test_04_multi': fail, |
| 127 | 128 |
| 128 // Deferred libraries are not actually deferred. These tests all test | 129 // Deferred libraries are not actually deferred. These tests all test |
| 129 // that synchronous access to the library fails. | 130 // that synchronous access to the library fails. |
| 130 'deferred_call_empty_before_load_test': fail, | 131 'deferred_call_empty_before_load_test': fail, |
| 131 'deferred_not_loaded_check_test': fail, | 132 'deferred_not_loaded_check_test': fail, |
| 132 'deferred_redirecting_factory_test': fail, | 133 'deferred_redirecting_factory_test': fail, |
| 133 'deferred_static_seperate_test': fail, | 134 'deferred_static_seperate_test': fail, |
| 134 | 135 |
| 135 'deferred_regression_22995_test': fail, // Strong mode "is" rejects some t
ype tests. | |
| 136 'double_int_to_string_test': fail, | 136 'double_int_to_string_test': fail, |
| 137 'dynamic_test': fail, | 137 'dynamic_test': fail, |
| 138 'exception_test': fail, | 138 'exception_test': fail, |
| 139 'execute_finally6_test': fail, | 139 'execute_finally6_test': fail, |
| 140 'expect_test': fail, | 140 'expect_test': fail, |
| 141 'extends_test_lib': fail, | 141 'extends_test_lib': fail, |
| 142 'external_test_10_multi': fail, | 142 'external_test_10_multi': fail, |
| 143 'external_test_13_multi': fail, | 143 'external_test_13_multi': fail, |
| 144 'external_test_20_multi': fail, | 144 'external_test_20_multi': fail, |
| 145 'f_bounded_quantification3_test': fail, | 145 'f_bounded_quantification3_test': fail, |
| 146 'field_increment_bailout_test': fail, | 146 'field_increment_bailout_test': fail, |
| 147 'field_optimization3_test': fail, | 147 'field_optimization3_test': fail, |
| 148 'field_type_check2_test_01_multi': fail, // 01: dynamic type error | 148 'field_type_check2_test_01_multi': fail, // 01: dynamic type error |
| 149 'final_syntax_test_08_multi': fail, | 149 'final_syntax_test_08_multi': fail, |
| 150 'first_class_types_test': fail, | 150 'first_class_types_test': fail, |
| 151 'for_variable_capture_test': is.firefox('<=50') ? pass : fail, | 151 'for_variable_capture_test': is.firefox('<=50') ? pass : fail, |
| 152 'function_subtype0_test': fail, | |
| 153 'function_subtype1_test': fail, | |
| 154 'function_subtype2_test': fail, | |
| 155 'function_subtype3_test': fail, | |
| 156 'function_subtype_bound_closure0_test': fail, | |
| 157 'function_subtype_bound_closure1_test': fail, | |
| 158 'function_subtype_bound_closure2_test': fail, | |
| 159 'function_subtype_bound_closure3_test': fail, | |
| 160 'function_subtype_bound_closure4_test': fail, | |
| 161 'function_subtype_bound_closure5_test': fail, | |
| 162 'function_subtype_bound_closure5a_test': fail, | |
| 163 'function_subtype_bound_closure6_test': fail, | |
| 164 'function_subtype_call0_test': fail, // Strong mode "is" rejects some type
tests. | |
| 165 'function_subtype_call1_test': fail, | |
| 166 'function_subtype_call2_test': fail, | |
| 167 'function_subtype_factory0_test': fail, | |
| 168 'function_subtype_inline0_test': fail, | |
| 169 'function_subtype_local0_test': fail, | |
| 170 'function_subtype_local1_test': fail, | |
| 171 'function_subtype_local2_test': fail, | |
| 172 'function_subtype_local3_test': fail, | |
| 173 'function_subtype_local4_test': fail, | |
| 174 'function_subtype_local5_test': fail, | |
| 175 'function_subtype_named1_test': fail, | 152 'function_subtype_named1_test': fail, |
| 176 'function_subtype_named2_test': fail, | 153 'function_subtype_named2_test': fail, |
| 177 'function_subtype_not0_test': fail, | |
| 178 'function_subtype_not1_test': fail, | |
| 179 'function_subtype_not2_test': fail, | |
| 180 'function_subtype_not3_test': fail, | |
| 181 'function_subtype_optional1_test': fail, | 154 'function_subtype_optional1_test': fail, |
| 182 'function_subtype_optional2_test': fail, | 155 'function_subtype_optional2_test': fail, |
| 183 'function_subtype_top_level0_test': fail, | |
| 184 'function_subtype_top_level1_test': fail, | |
| 185 'function_subtype_typearg2_test': fail, | 156 'function_subtype_typearg2_test': fail, |
| 186 'function_subtype_typearg4_test': fail, | 157 'function_subtype_typearg4_test': fail, |
| 187 'function_type_alias2_test': fail, | |
| 188 'function_type_alias3_test': fail, | 158 'function_type_alias3_test': fail, |
| 189 'function_type_alias4_test': fail, | |
| 190 'function_type_alias6_test_none_multi': fail, | 159 'function_type_alias6_test_none_multi': fail, |
| 191 'generic_instanceof_test': fail, // runtime strong mode reject | 160 'generic_instanceof_test': fail, // runtime strong mode reject |
| 192 'generic_instanceof2_test': fail, | 161 'generic_instanceof2_test': fail, |
| 193 'generic_is_check_test': fail, | 162 'generic_is_check_test': fail, |
| 194 'generic_methods_dynamic_test_02_multi': fail, | 163 'generic_methods_dynamic_test_02_multi': fail, |
| 195 'generic_methods_dynamic_test_04_multi': fail, | 164 'generic_methods_dynamic_test_04_multi': fail, |
| 196 'generic_methods_recursive_bound_test_03_multi': fail, | 165 'generic_methods_recursive_bound_test_03_multi': fail, |
| 197 'generic_methods_simple_as_expression_test_02_multi': fail, | 166 'generic_methods_simple_as_expression_test_02_multi': fail, |
| 198 'getter_closure_execution_order_test': fail, | 167 'getter_closure_execution_order_test': fail, |
| 199 'gc_test': 'slow', | 168 'gc_test': 'slow', |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 'stack_overflow_test': fail, | 213 'stack_overflow_test': fail, |
| 245 'stacktrace_rethrow_error_test_none_multi': fail, | 214 'stacktrace_rethrow_error_test_none_multi': fail, |
| 246 'stacktrace_rethrow_error_test_withtraceparameter_multi': fail, | 215 'stacktrace_rethrow_error_test_withtraceparameter_multi': fail, |
| 247 'stacktrace_test': chrome_fail, | 216 'stacktrace_test': chrome_fail, |
| 248 'string_interpolate_null_test': fail, | 217 'string_interpolate_null_test': fail, |
| 249 'switch_label2_test': fail, | 218 'switch_label2_test': fail, |
| 250 'switch_label_test': fail, | 219 'switch_label_test': fail, |
| 251 'switch_try_catch_test': fail, | 220 'switch_try_catch_test': fail, |
| 252 'throwing_lazy_variable_test': fail, | 221 'throwing_lazy_variable_test': fail, |
| 253 'truncdiv_test': fail, // did not throw | 222 'truncdiv_test': fail, // did not throw |
| 254 'type_variable_nested_test': fail, // unsound is-check | 223 'type_variable_nested_test': fail, |
| 255 'type_variable_typedef_test': fail, // unsound is-check | |
| 256 | 224 |
| 257 'bit_operations_test_01_multi': fail, | 225 'bit_operations_test_01_multi': fail, |
| 258 'bit_operations_test_02_multi': fail, | 226 'bit_operations_test_02_multi': fail, |
| 259 'bit_operations_test_03_multi': fail, | 227 'bit_operations_test_03_multi': fail, |
| 260 'bit_operations_test_04_multi': fail, | 228 'bit_operations_test_04_multi': fail, |
| 261 'bool_condition_check_test_01_multi': fail, | 229 'bool_condition_check_test_01_multi': fail, |
| 262 'deferred_load_constants_test_none_multi': fail, | 230 'deferred_load_constants_test_none_multi': fail, |
| 263 'external_test_21_multi': fail, | 231 'external_test_21_multi': fail, |
| 264 'external_test_24_multi': fail, | 232 'external_test_24_multi': fail, |
| 265 'main_not_a_function_test_01_multi': fail, | 233 'main_not_a_function_test_01_multi': fail, |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 'corelib/regexp': { | 329 'corelib/regexp': { |
| 362 'default_arguments_test': fail, | 330 'default_arguments_test': fail, |
| 363 'UC16_test': firefox_fail, | 331 'UC16_test': firefox_fail, |
| 364 }, | 332 }, |
| 365 | 333 |
| 366 'lib/async': { | 334 'lib/async': { |
| 367 'first_regression_test': async_unittest, | 335 'first_regression_test': async_unittest, |
| 368 'future_or_bad_type_test_implements_multi': fail, | 336 'future_or_bad_type_test_implements_multi': fail, |
| 369 'future_or_bad_type_test_none_multi': fail, | 337 'future_or_bad_type_test_none_multi': fail, |
| 370 'future_or_non_strong_test': fail, | 338 'future_or_non_strong_test': fail, |
| 371 'future_or_strong_test': fail, // Strong-mode is-check fail | |
| 372 'future_timeout_test': async_unittest, | 339 'future_timeout_test': async_unittest, |
| 373 'multiple_timer_test': async_unittest, | 340 'multiple_timer_test': async_unittest, |
| 374 'futures_test': fail, | 341 'futures_test': fail, |
| 375 'run_zoned6_test_01_multi': fail, | 342 'run_zoned6_test_01_multi': fail, |
| 376 'run_zoned9_test_01_multi': fail, | 343 'run_zoned9_test_01_multi': fail, |
| 377 'schedule_microtask2_test': async_unittest, | 344 'schedule_microtask2_test': async_unittest, |
| 378 'schedule_microtask3_test': async_unittest, | 345 'schedule_microtask3_test': async_unittest, |
| 379 'schedule_microtask5_test': async_unittest, | 346 'schedule_microtask5_test': async_unittest, |
| 380 'stream_controller_async_test': async_unittest, | 347 'stream_controller_async_test': async_unittest, |
| 381 'stream_first_where_test': async_unittest, | 348 'stream_first_where_test': async_unittest, |
| (...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 959 | 926 |
| 960 for (let action of unittest_tests) { | 927 for (let action of unittest_tests) { |
| 961 try { | 928 try { |
| 962 action(); | 929 action(); |
| 963 } catch (e) { | 930 } catch (e) { |
| 964 console.error("Caught error tying to setup test:", e); | 931 console.error("Caught error tying to setup test:", e); |
| 965 } | 932 } |
| 966 } | 933 } |
| 967 }); | 934 }); |
| 968 }); | 935 }); |
| OLD | NEW |