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

Side by Side Diff: pkg/dev_compiler/test/browser/language_tests.js

Issue 2979613002: Treat JS TypeError as Dart NSM (Closed)
Patch Set: Created 3 years, 5 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) 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;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 'async_star_test_05_multi': async_unittest, 82 'async_star_test_05_multi': async_unittest,
83 83
84 'async_switch_test': fail, 84 'async_switch_test': fail,
85 'async_test': whitelist, 85 'async_test': whitelist,
86 'async_this_bound_test': whitelist, 86 'async_this_bound_test': whitelist,
87 'asyncstar_throw_in_catch_test': ['skip', 'fail'], 87 'asyncstar_throw_in_catch_test': ['skip', 'fail'],
88 'await_future_test': skip_timeout, 88 'await_future_test': skip_timeout,
89 'bit_operations_test_none_multi': fail, // DDC/dart2js canonicalize bitop results to unsigned 89 'bit_operations_test_none_multi': fail, // DDC/dart2js canonicalize bitop results to unsigned
90 'branch_canonicalization_test': fail, // JS bit operations truncate to 32 bits. 90 'branch_canonicalization_test': fail, // JS bit operations truncate to 32 bits.
91 'call_closurization_test': fail, // Functions do not expose a "call" metho d. 91 'call_closurization_test': fail, // Functions do not expose a "call" metho d.
92 'call_through_null_getter_test': fail, // null errors are not converted to NoSuchMethodErrors.
93 'call_with_no_such_method_test': fail, // Function.apply not really implem ented. 92 'call_with_no_such_method_test': fail, // Function.apply not really implem ented.
94 'canonical_const2_test': fail, 93 'canonical_const2_test': fail,
95 'canonical_const_test': fail, 94 'canonical_const_test': fail,
96 'compile_time_constant10_test_none_multi': fail, 95 'compile_time_constant10_test_none_multi': fail,
97 'compile_time_constant_a_test': fail, 96 'compile_time_constant_a_test': fail,
98 'compile_time_constant_b_test': fail, 97 'compile_time_constant_b_test': fail,
99 'compile_time_constant_d_test': fail, 98 'compile_time_constant_d_test': fail,
100 'compile_time_constant_k_test_none_multi': fail, 99 'compile_time_constant_k_test_none_multi': fail,
101 'compile_time_constant_o_test_none_multi': fail, 100 'compile_time_constant_o_test_none_multi': fail,
102 'const_evaluation_test_01_multi': fail, 101 'const_evaluation_test_01_multi': fail,
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 'least_upper_bound_expansive_test_none_multi': fail, 163 'least_upper_bound_expansive_test_none_multi': fail,
165 'left_shift_test': fail, 164 'left_shift_test': fail,
166 'list_is_test': fail, 165 'list_is_test': fail,
167 'list_literal3_test': fail, 166 'list_literal3_test': fail,
168 'main_test_03_multi': fail, 167 'main_test_03_multi': fail,
169 'many_generic_instanceof_test': fail, 168 'many_generic_instanceof_test': fail,
170 'many_named_arguments_test': whitelist, 169 'many_named_arguments_test': whitelist,
171 'map_literal10_test': fail, 170 'map_literal10_test': fail,
172 'map_literal7_test': fail, 171 'map_literal7_test': fail,
173 'memory_swap_test': skip_timeout, 172 'memory_swap_test': skip_timeout,
174 'method_invocation_test': fail,
175 'mint_arithmetic_test': fail, 173 'mint_arithmetic_test': fail,
176 'modulo_test': fail, 174 'modulo_test': fail,
177 'named_parameter_clash_test': fail, 175 'named_parameter_clash_test': fail,
178 'named_parameters_passing_falsy_test': is.firefox('<=50') ? fail : pass, 176 'named_parameters_passing_falsy_test': is.firefox('<=50') ? fail : pass,
179 'nan_identical_test': fail, 177 'nan_identical_test': fail,
180 'nested_switch_label_test': fail, 178 'nested_switch_label_test': fail,
181 'number_identifier_test_05_multi': fail, 179 'number_identifier_test_05_multi': fail,
182 'number_identity2_test': fail, 180 'number_identity2_test': fail,
183 'numbers_test': fail, 181 'numbers_test': fail,
184 'redirecting_factory_reflection_test': fail, 182 'redirecting_factory_reflection_test': fail,
185 'reg_exp_test': whitelist, 183 'reg_exp_test': whitelist,
186 'regress_16640_test': fail, 184 'regress_16640_test': fail,
187 'regress_18535_test': fail, 185 'regress_18535_test': fail,
188 'regress_22445_test': fail, 186 'regress_22445_test': fail,
189 'regress_22666_test': fail, 187 'regress_22666_test': fail,
190 'regress_22777_test': flaky, 188 'regress_22777_test': flaky,
191 'stack_overflow_stacktrace_test': fail, 189 'stack_overflow_stacktrace_test': fail,
192 'stack_overflow_test': fail, 190 'stack_overflow_test': fail,
193 'stacktrace_test': chrome_fail, 191 'stacktrace_test': chrome_fail,
194 'string_interpolate_null_test': fail,
195 'switch_label2_test': fail, 192 'switch_label2_test': fail,
196 'switch_label_test': fail, 193 'switch_label_test': fail,
197 'switch_try_catch_test': fail, 194 'switch_try_catch_test': fail,
198 'throwing_lazy_variable_test': fail, 195 'throwing_lazy_variable_test': fail,
199 'truncdiv_test': fail, // did not throw 196 'truncdiv_test': fail, // did not throw
200 'try_catch_on_syntax_test_10_multi': fail, 197 'try_catch_on_syntax_test_10_multi': fail,
201 'try_catch_on_syntax_test_11_multi': fail, 198 'try_catch_on_syntax_test_11_multi': fail,
202 'type_variable_nested_test': fail, 199 'type_variable_nested_test': fail,
203 200
204 'bit_operations_test_01_multi': fail, 201 'bit_operations_test_01_multi': fail,
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 'typed_data_list_test': fail, 512 'typed_data_list_test': fail,
516 'typed_list_iterable_test': whitelist, 513 'typed_list_iterable_test': whitelist,
517 }, 514 },
518 515
519 'lib/mirrors': { 516 'lib/mirrors': {
520 'abstract_class_test_none_multi': fail, 517 'abstract_class_test_none_multi': fail,
521 'accessor_cache_overflow_test': fail, 518 'accessor_cache_overflow_test': fail,
522 'array_tracing3_test': fail, 519 'array_tracing3_test': fail,
523 'array_tracing_test': fail, 520 'array_tracing_test': fail,
524 'basic_types_in_dart_core_test': fail, 521 'basic_types_in_dart_core_test': fail,
525 'circular_factory_redirection_test_none_multi': fail,
526 'class_mirror_location_test': fail, 522 'class_mirror_location_test': fail,
527 'class_mirror_type_variables_test': fail, 523 'class_mirror_type_variables_test': fail,
528 'closurization_equivalence_test': fail, 524 'closurization_equivalence_test': fail,
529 'constructor_kinds_test_01_multi': fail, 525 'constructor_kinds_test_01_multi': fail,
530 'constructor_kinds_test_none_multi': fail, 526 'constructor_kinds_test_none_multi': fail,
531 'constructor_optional_args_test': fail, 527 'constructor_optional_args_test': fail,
532 'constructor_private_name_test': fail, 528 'constructor_private_name_test': fail,
533 'declarations_type_test': fail, 529 'declarations_type_test': fail,
534 'deferred_mirrors_metadata_test': skip_timeout, 530 'deferred_mirrors_metadata_test': skip_timeout,
535 'deferred_mirrors_metatarget_test': skip_timeout, 531 'deferred_mirrors_metatarget_test': skip_timeout,
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 'private_types_test': fail, 614 'private_types_test': fail,
619 'reflect_class_test_none_multi': fail, 615 'reflect_class_test_none_multi': fail,
620 'reflect_runtime_type_test': fail, 616 'reflect_runtime_type_test': fail,
621 'reflect_uninstantiated_class_test': fail, 617 'reflect_uninstantiated_class_test': fail,
622 'reflected_type_classes_test_none_multi': fail, 618 'reflected_type_classes_test_none_multi': fail,
623 'reflected_type_function_type_test': fail, 619 'reflected_type_function_type_test': fail,
624 'reflected_type_special_types_test': fail, 620 'reflected_type_special_types_test': fail,
625 'reflected_type_test_none_multi': fail, 621 'reflected_type_test_none_multi': fail,
626 'reflected_type_typedefs_test': fail, 622 'reflected_type_typedefs_test': fail,
627 'reflected_type_typevars_test': fail, 623 'reflected_type_typevars_test': fail,
628 'reflectively_instantiate_uninstantiated_class_test': fail,
629 'regress_14304_test': fail, 624 'regress_14304_test': fail,
630 'regress_26187_test': fail, 625 'regress_26187_test': fail,
631 'relation_assignable_test': fail, 626 'relation_assignable_test': fail,
632 'relation_subtype_test': fail, 627 'relation_subtype_test': fail,
633 'set_field_with_final_test': fail, 628 'set_field_with_final_test': fail,
634 'set_field_with_final_inheritance_test': fail, 629 'set_field_with_final_inheritance_test': fail,
635 'symbol_validation_test_01_multi': fail, 630 'symbol_validation_test_01_multi': fail,
636 'symbol_validation_test_none_multi': fail, 631 'symbol_validation_test_none_multi': fail,
637 'to_string_test': fail, 632 'to_string_test': fail,
638 'type_argument_is_type_variable_test': fail, 633 'type_argument_is_type_variable_test': fail,
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
904 899
905 for (let action of unittest_tests) { 900 for (let action of unittest_tests) {
906 try { 901 try {
907 action(); 902 action();
908 } catch (e) { 903 } catch (e) {
909 console.error("Caught error tying to setup test:", e); 904 console.error("Caught error tying to setup test:", e);
910 } 905 }
911 } 906 }
912 }); 907 });
913 }); 908 });
OLDNEW
« no previous file with comments | « pkg/dev_compiler/lib/sdk/ddc_sdk.sum ('k') | pkg/dev_compiler/tool/input_sdk/private/js_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698