OLD | NEW |
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 'test_status'], |
| 7 function(dart_sdk, async_helper, expect, unittest, is, require, |
| 8 test_status) { |
7 'use strict'; | 9 'use strict'; |
8 | 10 |
9 async_helper = async_helper.async_helper; | 11 async_helper = async_helper.async_helper; |
10 let minitest = expect.minitest; | 12 let minitest = expect.minitest; |
11 let mochaOnError = window.onerror; | 13 let mochaOnError = window.onerror; |
12 dart_sdk.dart.trapRuntimeErrors(false); | 14 dart_sdk.dart.trapRuntimeErrors(false); |
13 dart_sdk.dart.ignoreWhitelistedErrors(false); | 15 dart_sdk.dart.ignoreWhitelistedErrors(false); |
14 dart_sdk.dart.failForWeakModeIsChecks(false); | 16 dart_sdk.dart.failForWeakModeIsChecks(false); |
15 dart_sdk._isolate_helper.startRootIsolate(function() {}, []); | 17 dart_sdk._isolate_helper.startRootIsolate(function() {}, []); |
16 // Make it easier to debug test failures and required for formatter test that | 18 // Make it easier to debug test failures and required for formatter test that |
(...skipping 868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
885 | 887 |
886 for (let action of unittest_tests) { | 888 for (let action of unittest_tests) { |
887 try { | 889 try { |
888 action(); | 890 action(); |
889 } catch (e) { | 891 } catch (e) { |
890 console.error("Caught error tying to setup test:", e); | 892 console.error("Caught error tying to setup test:", e); |
891 } | 893 } |
892 } | 894 } |
893 }); | 895 }); |
894 }); | 896 }); |
OLD | NEW |