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