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

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

Issue 1257233008: fix language_tests.js to use strict mode (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: add comment 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 | « karma.conf.js ('k') | test/codegen/expect/js_test.txt » ('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 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'
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 });
OLDNEW
« no previous file with comments | « karma.conf.js ('k') | test/codegen/expect/js_test.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698