| 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 dart_sdk = dart_library.import('dart_sdk'); | 8 let dart_sdk = dart_library.import('dart_sdk'); |
| 9 dart_sdk._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; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 'cast_test_03_multi': skip_fail, | 77 'cast_test_03_multi': skip_fail, |
| 78 'cast_test_07_multi': skip_fail, | 78 'cast_test_07_multi': skip_fail, |
| 79 'cast_test_10_multi': skip_fail, | 79 'cast_test_10_multi': skip_fail, |
| 80 'cast_test_12_multi': skip_fail, | 80 'cast_test_12_multi': skip_fail, |
| 81 'cast_test_13_multi': skip_fail, | 81 'cast_test_13_multi': skip_fail, |
| 82 'cast_test_14_multi': skip_fail, | 82 'cast_test_14_multi': skip_fail, |
| 83 'cast_test_15_multi': skip_fail, | 83 'cast_test_15_multi': skip_fail, |
| 84 'cha_deopt1_test': skip_fail, | 84 'cha_deopt1_test': skip_fail, |
| 85 'cha_deopt2_test': skip_fail, | 85 'cha_deopt2_test': skip_fail, |
| 86 'cha_deopt3_test': skip_fail, | 86 'cha_deopt3_test': skip_fail, |
| 87 |
| 88 // interpolation does not call Dart's toString: |
| 89 // https://github.com/dart-lang/dev_compiler/issues/470 |
| 90 'class_syntax2_test': skip_fail, |
| 87 'classes_static_method_clash_test': skip_fail, | 91 'classes_static_method_clash_test': skip_fail, |
| 88 'closure_call_wrong_argument_count_negative_test': skip_fail, | 92 'closure_call_wrong_argument_count_negative_test': skip_fail, |
| 89 'closure_in_constructor_test': skip_fail, | 93 'closure_in_constructor_test': skip_fail, |
| 90 'closure_with_super_field_test': skip_fail, | 94 'closure_with_super_field_test': skip_fail, |
| 91 'closures_initializer_test': skip_fail, | 95 'closures_initializer_test': skip_fail, |
| 92 'code_after_try_is_executed_test_01_multi': skip_fail, | 96 'code_after_try_is_executed_test_01_multi': skip_fail, |
| 93 'compile_time_constant10_test_none_multi': skip_fail, | 97 'compile_time_constant10_test_none_multi': skip_fail, |
| 94 'compile_time_constant_a_test': skip_fail, | 98 'compile_time_constant_a_test': skip_fail, |
| 95 'compile_time_constant_b_test': skip_fail, | 99 'compile_time_constant_b_test': skip_fail, |
| 96 'compile_time_constant_d_test': skip_fail, | 100 'compile_time_constant_d_test': skip_fail, |
| (...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 'int_parse_radix_test_none_multi': ['slow'], | 423 'int_parse_radix_test_none_multi': ['slow'], |
| 420 'integer_to_radix_string_test': fail, | 424 'integer_to_radix_string_test': fail, |
| 421 'integer_to_string_test_01_multi': fail, | 425 'integer_to_string_test_01_multi': fail, |
| 422 'iterable_generate_test': fail, | 426 'iterable_generate_test': fail, |
| 423 'iterable_return_type_test_02_multi': fail, | 427 'iterable_return_type_test_02_multi': fail, |
| 424 'json_map_test': fail, | 428 'json_map_test': fail, |
| 425 'list_fill_range_test': fail, | 429 'list_fill_range_test': fail, |
| 426 'list_replace_range_test': fail, | 430 'list_replace_range_test': fail, |
| 427 'list_set_all_test': fail, | 431 'list_set_all_test': fail, |
| 428 'list_to_string2_test': fail, | 432 'list_to_string2_test': fail, |
| 429 'list_to_string_test': fail, | |
| 430 'main_test': fail, | 433 'main_test': fail, |
| 431 'map_keys2_test': fail, | 434 'map_keys2_test': fail, |
| 432 'map_to_string_test': fail, | 435 'map_to_string_test': fail, |
| 433 'nan_infinity_test_01_multi': fail, | 436 'nan_infinity_test_01_multi': fail, |
| 434 'null_nosuchmethod_test': fail, | 437 'null_nosuchmethod_test': fail, |
| 435 'null_test': fail, | 438 'null_test': fail, |
| 436 'num_sign_test': fail, | 439 'num_sign_test': fail, |
| 437 'queue_test': fail, | 440 'queue_test': fail, |
| 438 'regress_r21715_test': fail, | 441 'regress_r21715_test': fail, |
| 439 'throw_half_surrogate_pair_test_02_multi': fail, | 442 'throw_half_surrogate_pair_test_02_multi': fail, |
| 440 'stacktrace_current_test': fail, | 443 'stacktrace_current_test': fail, |
| 441 'stacktrace_fromstring_test': fail, | 444 'stacktrace_fromstring_test': fail, |
| 442 'string_from_environment2_test': fail, | 445 'string_from_environment2_test': fail, |
| 443 'string_from_environment_test': fail, | 446 'string_from_environment_test': fail, |
| 444 'string_from_list_test': skip_timeout, | 447 'string_from_list_test': skip_timeout, |
| 445 'string_fromcharcodes_test': skip_timeout, | 448 'string_fromcharcodes_test': skip_timeout, |
| 446 'string_operations_with_null_test': fail, | 449 'string_operations_with_null_test': fail, |
| 447 'symbol_reserved_word_test_06_multi': fail, | 450 'symbol_reserved_word_test_06_multi': fail, |
| 448 'symbol_reserved_word_test_09_multi': fail, | 451 'symbol_reserved_word_test_09_multi': fail, |
| 449 'symbol_reserved_word_test_12_multi': fail, | 452 'symbol_reserved_word_test_12_multi': fail, |
| 450 'throw_half_surrogate_pair_test_01_multi': fail, | 453 'throw_half_surrogate_pair_test_01_multi': fail, |
| 451 // TODO(rnystrom): Times out because it tests a huge number of | 454 // TODO(rnystrom): Times out because it tests a huge number of |
| 452 // combinations of URLs (4 * 5 * 5 * 8 * 6 * 6 * 4 = 115200). | 455 // combinations of URLs (4 * 5 * 5 * 8 * 6 * 6 * 4 = 115200). |
| 453 'uri_parse_test': skip_timeout, | 456 'uri_parse_test': skip_timeout, |
| 454 }, | 457 }, |
| 455 | 458 |
| 456 'lib/convert': { | 459 'lib/convert': { |
| 460 // TODO(jmesserly): this could be a failure we didn't notice before |
| 461 // because we now call the right Dart double.toString, resulting in a |
| 462 // difference between -0.0 and 0? |
| 463 'chunked_conversion_json_encode1_test': skip_fail, |
| 464 |
| 457 // TODO(rnystrom): A lot of the convert tests timeout. Some do pass if | 465 // TODO(rnystrom): A lot of the convert tests timeout. Some do pass if |
| 458 // you increase the time by a large amount, but it's pretty gratuitous. | 466 // you increase the time by a large amount, but it's pretty gratuitous. |
| 459 // I'm not sure why they are so slow. One guess is that they are spewing | 467 // I'm not sure why they are so slow. One guess is that they are spewing |
| 460 // a ton of warnings, that slow down the test. | 468 // a ton of warnings, that slow down the test. |
| 461 'chunked_conversion_utf84_test': skip_timeout, | 469 'chunked_conversion_utf84_test': skip_timeout, |
| 462 'chunked_conversion_utf88_test': skip_timeout, | 470 'chunked_conversion_utf88_test': skip_timeout, |
| 463 'chunked_conversion_utf8_test': skip_timeout, | 471 'chunked_conversion_utf8_test': skip_timeout, |
| 464 | 472 |
| 465 // TODO(rnystrom): Strong mode cast failures. | 473 // TODO(rnystrom): Strong mode cast failures. |
| 466 'codec1_test': skip_fail, | 474 'codec1_test': skip_fail, |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 710 }); | 718 }); |
| 711 continue; | 719 continue; |
| 712 } | 720 } |
| 713 | 721 |
| 714 function protect(f) { // Returns the exception, or `null`. | 722 function protect(f) { // Returns the exception, or `null`. |
| 715 try { | 723 try { |
| 716 f(); | 724 f(); |
| 717 return null; | 725 return null; |
| 718 } catch (e) { | 726 } catch (e) { |
| 719 return e; | 727 return e; |
| 720 }; | 728 } |
| 721 } | 729 } |
| 722 | 730 |
| 723 test(name, function(done) { // 'function' to allow `this.timeout`. | 731 test(name, function(done) { // 'function' to allow `this.timeout`. |
| 724 async_helper.asyncTestInitialize(done); | 732 async_helper.asyncTestInitialize(done); |
| 725 console.debug('Running test: ' + name); | 733 console.debug('Running test: ' + name); |
| 726 | 734 |
| 727 let mainLibrary = dart_library.import(module)[name]; | 735 let mainLibrary = dart_library.import(module)[name]; |
| 728 let negative = /negative_test/.test(name); | 736 let negative = /negative_test/.test(name); |
| 729 if (has('slow')) this.timeout(5000); | 737 if (has('slow')) this.timeout(5000); |
| 730 if (has('fail')) { | 738 if (has('fail')) { |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 789 | 797 |
| 790 for (let action of unittest_tests) { | 798 for (let action of unittest_tests) { |
| 791 try { | 799 try { |
| 792 action(); | 800 action(); |
| 793 } catch (e) { | 801 } catch (e) { |
| 794 console.error("Caught error tying to setup test:", e); | 802 console.error("Caught error tying to setup test:", e); |
| 795 } | 803 } |
| 796 } | 804 } |
| 797 }); | 805 }); |
| 798 })(); | 806 })(); |
| OLD | NEW |