| 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 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 Loading... |
| 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 }); |
| OLD | NEW |