Chromium Code Reviews| Index: test/browser/language_tests.js |
| diff --git a/test/browser/language_tests.js b/test/browser/language_tests.js |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..3b691787f806b666f31f4f2cdba3dd39b76174ee |
| --- /dev/null |
| +++ b/test/browser/language_tests.js |
| @@ -0,0 +1,68 @@ |
| +// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| +// for details. All rights reserved. Use of this source code is governed by a |
| +// BSD-style license that can be found in the LICENSE file. |
| + |
| +var _isolate_helper = dart_library.import('dart/_isolate_helper'); |
| +_isolate_helper.startRootIsolate(function() {}, []); |
| + |
| +function dartLanguageTests(tests) { |
| + for (const name of tests) { |
| + test(name, () => { |
| + dart_library.import('language/' + name).main(); |
| + }) |
| + } |
| +} |
| + |
| +suite('sync*', () => { |
| + "use strict"; |
| + |
| + test('syncstar_syntax', () => { |
| + dart_library.import('syncstar_syntax').main(); |
| + }); |
| + |
| + dartLanguageTests([ |
| + 'syncstar_yield_test', |
| + 'syncstar_yieldstart_test' |
| + ]); |
| +}); |
| + |
| +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
|
| + |
| +suite('async', () => { |
| + dartLanguageTests([ |
| + 'async_and_or_test', |
| + 'async_await_catch_regression_test', |
| + // TODO(jmesserly): fix errors |
| + // 'async_backwards_compatibility_1_test', |
| + 'async_backwards_compatibility_2_test', |
| + 'async_break_in_finally_test', |
| + // TODO(jmesserly): https://github.com/dart-lang/dev_compiler/issues/263 |
| + // 'async_continue_label_test', |
| + 'async_control_structures_test', |
| + 'async_finally_rethrow_test', |
| + // TODO(jmesserly): fix errors |
| + // 'async_or_generator_return_type_stacktrace_test', |
| + 'async_regression_23058_test', |
| + 'async_rethrow_test', |
| + // TODO(jmesserly): fix errors |
| + // 'async_return_types_test', |
| + 'async_switch_test', |
| + 'async_test', |
| + 'async_this_bound_test', |
| + 'async_throw_in_catch_test' |
| + ]); |
| +}) |
| + |
| +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
|
| + |
| +suite('async*', () => { |
| + dartLanguageTests([ |
| + // TODO(jmesserly): figure out why this test is hanging. |
| + //'async_star_cancel_and_throw_in_finally_test', |
| + 'async_star_regression_23116_test', |
| + 'asyncstar_concat_test', |
| + 'asyncstar_throw_in_catch_test', |
| + 'asyncstar_yield_test', |
| + 'asyncstar_yieldstar_test' |
| + ]); |
| +}); |