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

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

Issue 2703263002: Custom formatter cleanup Fix case where displaying a class constructor generated unreadable huge ou… (Closed)
Patch Set: Created 3 years, 10 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
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 define(['dart_sdk', 'async_helper', 'expect', 'unittest', 'is', 'require'], 5 define(['dart_sdk', 'async_helper', 'expect', 'unittest', 'is', 'require'],
6 function(dart_sdk, async_helper, expect, unittest, is, require) { 6 function(dart_sdk, async_helper, expect, unittest, is, require) {
7 'use strict'; 7 'use strict';
8 8
9 async_helper = async_helper.async_helper; 9 async_helper = async_helper.async_helper;
10 let minitest = expect.minitest; 10 let minitest = expect.minitest;
11 let mochaOnError = window.onerror; 11 let mochaOnError = window.onerror;
12 dart_sdk.dart.trapRuntimeErrors(false); 12 dart_sdk.dart.trapRuntimeErrors(false);
13 dart_sdk._isolate_helper.startRootIsolate(function() {}, []); 13 dart_sdk._isolate_helper.startRootIsolate(function() {}, []);
14 // Make it easier to debug test failures and required for formatter test that
15 // assumes custom formatters are enabled.
16 dart_sdk._debugger.registerDevtoolsFormatter();
17
14 let html_config = unittest.html_config; 18 let html_config = unittest.html_config;
15 // Test attributes are a list of strings, or a string for a single 19 // Test attributes are a list of strings, or a string for a single
16 // attribute. Valid attributes are: 20 // attribute. Valid attributes are:
17 // 21 //
18 // 'pass' - test passes (default) 22 // 'pass' - test passes (default)
19 // 'skip' - don't run the test 23 // 'skip' - don't run the test
20 // 'fail' - test fails 24 // 'fail' - test fails
21 // 'timeout' - test times out 25 // 'timeout' - test times out
22 // 'slow' - use 5s timeout instead of default 2s. 26 // 'slow' - use 5s timeout instead of default 2s.
23 // 'helper' - not a test, used by other tests. 27 // 'helper' - not a test, used by other tests.
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 'function_subtype_typearg4_test': fail, 183 'function_subtype_typearg4_test': fail,
180 'function_type_alias2_test': fail, 184 'function_type_alias2_test': fail,
181 'function_type_alias3_test': fail, 185 'function_type_alias3_test': fail,
182 'function_type_alias4_test': fail, 186 'function_type_alias4_test': fail,
183 'function_type_alias6_test_none_multi': fail, 187 'function_type_alias6_test_none_multi': fail,
184 'generic_instanceof_test': fail, // runtime strong mode reject 188 'generic_instanceof_test': fail, // runtime strong mode reject
185 'generic_instanceof2_test': fail, 189 'generic_instanceof2_test': fail,
186 'generic_is_check_test': fail, 190 'generic_is_check_test': fail,
187 'getter_closure_execution_order_test': fail, 191 'getter_closure_execution_order_test': fail,
188 'gc_test': 'slow', 192 'gc_test': 'slow',
189 'hash_code_mangling_test': fail,
vsm 2017/02/21 14:33:00 nice :-)
190 'identical_closure2_test': fail, 193 'identical_closure2_test': fail,
191 'infinite_switch_label_test': fail, 194 'infinite_switch_label_test': fail,
192 'infinity_test': fail, 195 'infinity_test': fail,
193 'initializing_formal_final_test': fail, 196 'initializing_formal_final_test': fail,
194 'instance_creation_in_function_annotation_test': fail, 197 'instance_creation_in_function_annotation_test': fail,
195 'instanceof2_test': fail, 198 'instanceof2_test': fail,
196 'instanceof4_test_01_multi': fail, 199 'instanceof4_test_01_multi': fail,
197 'instanceof4_test_none_multi': fail, 200 'instanceof4_test_none_multi': fail,
198 'instanceof_optimized_test': fail, 201 'instanceof_optimized_test': fail,
199 'integer_division_by_zero_test': fail, 202 'integer_division_by_zero_test': fail,
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after
862 865
863 for (let action of unittest_tests) { 866 for (let action of unittest_tests) {
864 try { 867 try {
865 action(); 868 action();
866 } catch (e) { 869 } catch (e) {
867 console.error("Caught error tying to setup test:", e); 870 console.error("Caught error tying to setup test:", e);
868 } 871 }
869 } 872 }
870 }); 873 });
871 }); 874 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698