| 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; |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 'function_subtype_typearg2_test': fail, | 178 'function_subtype_typearg2_test': fail, |
| 179 'function_subtype_typearg4_test': fail, | 179 'function_subtype_typearg4_test': fail, |
| 180 'function_type_alias2_test': fail, | 180 'function_type_alias2_test': fail, |
| 181 'function_type_alias3_test': fail, | 181 'function_type_alias3_test': fail, |
| 182 'function_type_alias4_test': fail, | 182 'function_type_alias4_test': fail, |
| 183 'function_type_alias6_test_none_multi': fail, | 183 'function_type_alias6_test_none_multi': fail, |
| 184 'generic_instanceof_test': fail, // runtime strong mode reject | 184 'generic_instanceof_test': fail, // runtime strong mode reject |
| 185 'generic_instanceof2_test': fail, | 185 'generic_instanceof2_test': fail, |
| 186 'generic_is_check_test': fail, | 186 'generic_is_check_test': fail, |
| 187 'getter_closure_execution_order_test': fail, | 187 'getter_closure_execution_order_test': fail, |
| 188 'gc_test': 'slow', |
| 188 'hash_code_mangling_test': fail, | 189 'hash_code_mangling_test': fail, |
| 189 'identical_closure2_test': fail, | 190 'identical_closure2_test': fail, |
| 190 'infinite_switch_label_test': fail, | 191 'infinite_switch_label_test': fail, |
| 191 'infinity_test': fail, | 192 'infinity_test': fail, |
| 192 'initializing_formal_final_test': fail, | 193 'initializing_formal_final_test': fail, |
| 193 'instance_creation_in_function_annotation_test': fail, | 194 'instance_creation_in_function_annotation_test': fail, |
| 194 'instanceof2_test': fail, | 195 'instanceof2_test': fail, |
| 195 'instanceof4_test_01_multi': fail, | 196 'instanceof4_test_01_multi': fail, |
| 196 'instanceof4_test_none_multi': fail, | 197 'instanceof4_test_none_multi': fail, |
| 197 'instanceof_optimized_test': fail, | 198 'instanceof_optimized_test': fail, |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 | 347 |
| 347 'corelib/regexp': { | 348 'corelib/regexp': { |
| 348 'default_arguments_test': fail, | 349 'default_arguments_test': fail, |
| 349 'UC16_test': firefox_fail, | 350 'UC16_test': firefox_fail, |
| 350 }, | 351 }, |
| 351 | 352 |
| 352 'lib/collection': { | 353 'lib/collection': { |
| 353 }, | 354 }, |
| 354 | 355 |
| 355 'lib/convert': { | 356 'lib/convert': { |
| 357 'base64_test_01_multi': 'slow', |
| 358 'chunked_conversion_utf85_test': 'slow', |
| 359 |
| 356 'encoding_test': skip_timeout, | 360 'encoding_test': skip_timeout, |
| 357 | 361 |
| 358 'json_utf8_chunk_test': skip_timeout, | 362 'json_utf8_chunk_test': skip_timeout, |
| 359 'latin1_test': skip_timeout, | 363 'latin1_test': skip_timeout, |
| 360 | 364 |
| 361 'streamed_conversion_json_encode1_test': skip_timeout, | 365 'streamed_conversion_json_encode1_test': skip_timeout, |
| 362 'streamed_conversion_json_utf8_decode_test': skip_timeout, | 366 'streamed_conversion_json_utf8_decode_test': skip_timeout, |
| 363 'streamed_conversion_json_utf8_encode_test': skip_timeout, | 367 'streamed_conversion_json_utf8_encode_test': skip_timeout, |
| 364 'streamed_conversion_utf8_decode_test': skip_timeout, | 368 'streamed_conversion_utf8_decode_test': skip_timeout, |
| 365 'streamed_conversion_utf8_encode_test': skip_timeout, | 369 'streamed_conversion_utf8_encode_test': skip_timeout, |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 683 } | 687 } |
| 684 | 688 |
| 685 let protect = (f) => { // Returns the exception, or `null`. | 689 let protect = (f) => { // Returns the exception, or `null`. |
| 686 try { | 690 try { |
| 687 return f(); | 691 return f(); |
| 688 } catch (e) { | 692 } catch (e) { |
| 689 return e; | 693 return e; |
| 690 } | 694 } |
| 691 }; | 695 }; |
| 692 | 696 |
| 693 test(name, function(done) { // 'function' to allow `this.timeout`. | 697 var fullName = status_group + '/' + name; |
| 694 console.debug('Running test: ' + name); | 698 test(fullName, function(done) { // 'function' to allow `this.timeout`. |
| 699 console.debug('Running test: ' + fullName); |
| 695 | 700 |
| 696 // Many tests are async. Currently, tests can indicate this in | 701 // Many tests are async. Currently, tests can indicate this in |
| 697 // two different ways. First, `main` can call (in Dart) | 702 // two different ways. First, `main` can call (in Dart) |
| 698 // `async_helper.asyncStart`. We can check if this happened by | 703 // `async_helper.asyncStart`. We can check if this happened by |
| 699 // querying `async_helper.asyncTestStarted` afterward and waiting for | 704 // querying `async_helper.asyncTestStarted` afterward and waiting for |
| 700 // the callback if so. Second, `main` can return a `Future`. If so, | 705 // the callback if so. Second, `main` can return a `Future`. If so, |
| 701 // we wait for that to complete. If neither is true, we assume the | 706 // we wait for that to complete. If neither is true, we assume the |
| 702 // test is synchronous. | 707 // test is synchronous. |
| 703 // | 708 // |
| 704 // A 'failing' test will throw an exception. This exception may be | 709 // A 'failing' test will throw an exception. This exception may be |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 857 | 862 |
| 858 for (let action of unittest_tests) { | 863 for (let action of unittest_tests) { |
| 859 try { | 864 try { |
| 860 action(); | 865 action(); |
| 861 } catch (e) { | 866 } catch (e) { |
| 862 console.error("Caught error tying to setup test:", e); | 867 console.error("Caught error tying to setup test:", e); |
| 863 } | 868 } |
| 864 } | 869 } |
| 865 }); | 870 }); |
| 866 }); | 871 }); |
| OLD | NEW |