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

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

Issue 2621823002: Disable auto "debugger" call for tests (Closed)
Patch Set: Created 3 years, 11 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 11
12 dart_sdk.dart.trapRuntimeErrors(false);
12 dart_sdk._isolate_helper.startRootIsolate(function() {}, []); 13 dart_sdk._isolate_helper.startRootIsolate(function() {}, []);
13 let html_config = unittest.html_config; 14 let html_config = unittest.html_config;
14 // Test attributes are a list of strings, or a string for a single 15 // Test attributes are a list of strings, or a string for a single
15 // attribute. Valid attributes are: 16 // attribute. Valid attributes are:
16 // 17 //
17 // 'pass' - test passes (default) 18 // 'pass' - test passes (default)
18 // 'skip' - don't run the test 19 // 'skip' - don't run the test
19 // 'fail' - test fails 20 // 'fail' - test fails
20 // 'timeout' - test times out 21 // 'timeout' - test times out
21 // 'slow' - use 5s timeout instead of default 2s. 22 // 'slow' - use 5s timeout instead of default 2s.
(...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after
842 843
843 for (let action of unittest_tests) { 844 for (let action of unittest_tests) {
844 try { 845 try {
845 action(); 846 action();
846 } catch (e) { 847 } catch (e) {
847 console.error("Caught error tying to setup test:", e); 848 console.error("Caught error tying to setup test:", e);
848 } 849 }
849 } 850 }
850 }); 851 });
851 }); 852 });
OLDNEW
« no previous file with comments | « pkg/dev_compiler/lib/sdk/ddc_sdk.sum ('k') | pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/errors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698