OLD | NEW |
(Empty) | |
| 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 |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 var _isolate_helper = dart_library.import('dart/_isolate_helper'); |
| 6 _isolate_helper.startRootIsolate(function() {}, []); |
| 7 |
| 8 function dartLanguageTests(tests) { |
| 9 for (const name of tests) { |
| 10 test(name, () => { |
| 11 dart_library.import('language/' + name).main(); |
| 12 }) |
| 13 } |
| 14 } |
| 15 |
| 16 suite('sync*', () => { |
| 17 "use strict"; |
| 18 |
| 19 test('syncstar_syntax', () => { |
| 20 dart_library.import('syncstar_syntax').main(); |
| 21 }); |
| 22 |
| 23 dartLanguageTests([ |
| 24 'syncstar_yield_test', |
| 25 'syncstar_yieldstart_test' |
| 26 ]); |
| 27 }); |
| 28 |
| 29 dart_library.import('language/async_await_test').main(); |
| 30 |
| 31 suite('async', () => { |
| 32 dartLanguageTests([ |
| 33 'async_and_or_test', |
| 34 'async_await_catch_regression_test', |
| 35 // TODO(jmesserly): fix errors |
| 36 // 'async_backwards_compatibility_1_test', |
| 37 'async_backwards_compatibility_2_test', |
| 38 'async_break_in_finally_test', |
| 39 // TODO(jmesserly): https://github.com/dart-lang/dev_compiler/issues/263 |
| 40 // 'async_continue_label_test', |
| 41 'async_control_structures_test', |
| 42 'async_finally_rethrow_test', |
| 43 // TODO(jmesserly): fix errors |
| 44 // 'async_or_generator_return_type_stacktrace_test', |
| 45 'async_regression_23058_test', |
| 46 'async_rethrow_test', |
| 47 // TODO(jmesserly): fix errors |
| 48 // 'async_return_types_test', |
| 49 'async_switch_test', |
| 50 'async_test', |
| 51 'async_this_bound_test', |
| 52 'async_throw_in_catch_test' |
| 53 ]); |
| 54 }) |
| 55 |
| 56 dart_library.import('language/async_star_test').main(); |
| 57 |
| 58 suite('async*', () => { |
| 59 dartLanguageTests([ |
| 60 // TODO(jmesserly): figure out why this test is hanging. |
| 61 //'async_star_cancel_and_throw_in_finally_test', |
| 62 'async_star_regression_23116_test', |
| 63 'asyncstar_concat_test', |
| 64 'asyncstar_throw_in_catch_test', |
| 65 'asyncstar_yield_test', |
| 66 'asyncstar_yieldstar_test' |
| 67 ]); |
| 68 }); |
OLD | NEW |