Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(474)

Side by Side Diff: test/browser/language_tests.js

Issue 1289673007: fixes #292, report async_helper test failures (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | test/codegen/async_helper.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 (function() { 5 (function() {
6 'use strict'; 6 'use strict';
7 7
8 let _isolate_helper = dart_library.import('dart/_isolate_helper'); 8 let _isolate_helper = dart_library.import('dart/_isolate_helper');
9 _isolate_helper.startRootIsolate(function() {}, []); 9 _isolate_helper.startRootIsolate(function() {}, []);
10 10
11 let async_helper = dart_library.import('async_helper/async_helper');
12
11 function dartLanguageTests(tests) { 13 function dartLanguageTests(tests) {
12 for (const name of tests) { 14 for (const name of tests) {
13 test(name, () => { 15 test(name, (done) => {
14 console.debug('Running language test: ' + name); 16 async_helper.asyncTestInitialize(done);
17 console.debug('Running language test: ' + name);
15 dart_library.import('language/' + name).main(); 18 dart_library.import('language/' + name).main();
19 if (!async_helper.asyncTestStarted) done();
16 }); 20 });
17 } 21 }
18 } 22 }
19 23
20 suite('sync*', () => { 24 suite('sync*', () => {
21 test('syncstar_syntax', () => { 25 test('syncstar_syntax', () => {
22 dart_library.import('syncstar_syntax').main(); 26 dart_library.import('syncstar_syntax').main();
23 }); 27 });
24 28
25 dartLanguageTests([ 29 dartLanguageTests([
(...skipping 15 matching lines...) Expand all
41 // TODO(jmesserly): https://github.com/dart-lang/dev_compiler/issues/263 45 // TODO(jmesserly): https://github.com/dart-lang/dev_compiler/issues/263
42 // 'async_continue_label_test', 46 // 'async_continue_label_test',
43 'async_control_structures_test', 47 'async_control_structures_test',
44 'async_finally_rethrow_test', 48 'async_finally_rethrow_test',
45 // TODO(jmesserly): fix errors 49 // TODO(jmesserly): fix errors
46 // 'async_or_generator_return_type_stacktrace_test', 50 // 'async_or_generator_return_type_stacktrace_test',
47 'async_regression_23058_test', 51 'async_regression_23058_test',
48 'async_rethrow_test', 52 'async_rethrow_test',
49 // TODO(jmesserly): fix errors 53 // TODO(jmesserly): fix errors
50 // 'async_return_types_test', 54 // 'async_return_types_test',
51 'async_switch_test', 55 // TODO(jmesserly): https://github.com/dart-lang/dev_compiler/issues/294
56 // 'async_switch_test',
52 'async_test', 57 'async_test',
53 'async_this_bound_test', 58 'async_this_bound_test',
54 'async_throw_in_catch_test' 59 'async_throw_in_catch_test'
55 ]); 60 ]);
56 }); 61 });
57 62
58 dart_library.import('language/async_star_test').main(); 63 dart_library.import('language/async_star_test').main();
59 64
60 suite('async*', () => { 65 suite('async*', () => {
61 dartLanguageTests([ 66 dartLanguageTests([
62 // TODO(jmesserly): figure out why this test is hanging. 67 // TODO(jmesserly): figure out why this test is hanging.
63 //'async_star_cancel_and_throw_in_finally_test', 68 //'async_star_cancel_and_throw_in_finally_test',
64 'async_star_regression_23116_test', 69 'async_star_regression_23116_test',
65 'asyncstar_concat_test', 70 'asyncstar_concat_test',
66 'asyncstar_throw_in_catch_test', 71 // TODO(jmesserly): https://github.com/dart-lang/dev_compiler/issues/294
72 // 'asyncstar_throw_in_catch_test',
67 'asyncstar_yield_test', 73 'asyncstar_yield_test',
68 'asyncstar_yieldstar_test' 74 'asyncstar_yieldstar_test'
69 ]); 75 ]);
70 }); 76 });
71 77
72 suite('export', () => { 78 suite('export', () => {
73 dartLanguageTests([ 79 dartLanguageTests([
74 'duplicate_export_test', 80 'duplicate_export_test',
75 'export_cyclic_test', 81 'export_cyclic_test',
76 'export_double_same_main_test', 82 'export_double_same_main_test',
77 'export_main_override_test', 83 'export_main_override_test',
78 'export_main_test', 84 'export_main_test',
79 'export_test', 85 'export_test',
80 'local_export_test', 86 'local_export_test',
81 'reexport_core_test', 87 'reexport_core_test',
82 'top_level_entry_test' 88 'top_level_entry_test'
83 ]); 89 ]);
84 }); 90 });
85 91
86 })(); 92 })();
OLDNEW
« no previous file with comments | « no previous file | test/codegen/async_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698