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 843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
860 | 862 |
861 for (let action of unittest_tests) { | 863 for (let action of unittest_tests) { |
862 try { | 864 try { |
863 action(); | 865 action(); |
864 } catch (e) { | 866 } catch (e) { |
865 console.error("Caught error tying to setup test:", e); | 867 console.error("Caught error tying to setup test:", e); |
866 } | 868 } |
867 } | 869 } |
868 }); | 870 }); |
869 }); | 871 }); |
OLD | NEW |