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(); | |
vsm
2015/07/27 21:03:24
Is there a reason this isn't in the suite below?
Jennifer Messerly
2015/07/27 21:46:35
I don't think you can nest `suite`s in the version
vsm
2015/07/28 21:01:54
Ahh - so the test above already has "groups" insid
| |
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(); | |
vsm
2015/07/27 21:03:24
ditto?
Jennifer Messerly
2015/07/27 21:46:35
same answer -- it didn't work with version(s) that
| |
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 |