| 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', 'minitest', 'unittest', 'require'], | 5 define(['dart_sdk', 'async_helper', 'expect', 'unittest', 'require'], |
| 6 function(dart_sdk, async_helper, minitest, unittest, require) { | 6 function(dart_sdk, async_helper, expect, unittest, require) { |
| 7 'use strict'; | 7 'use strict'; |
| 8 | 8 |
| 9 async_helper = async_helper.async_helper; | 9 async_helper = async_helper.async_helper; |
| 10 minitest = minitest.minitest; | 10 let minitest = expect.minitest; |
| 11 | 11 |
| 12 dart_sdk._isolate_helper.startRootIsolate(function() {}, []); | 12 dart_sdk._isolate_helper.startRootIsolate(function() {}, []); |
| 13 let html_config = unittest.html_config; | 13 let html_config = unittest.html_config; |
| 14 // Test attributes are a list of strings, or a string for a single | 14 // Test attributes are a list of strings, or a string for a single |
| 15 // attribute. Valid attributes are: | 15 // attribute. Valid attributes are: |
| 16 // | 16 // |
| 17 // 'skip' - don't run the test | 17 // 'skip' - don't run the test |
| 18 // 'fail' - test fails | 18 // 'fail' - test fails |
| 19 // 'timeout' - test times out | 19 // 'timeout' - test times out |
| 20 // 'slow' - use 5s timeout instead of default 2s. | 20 // 'slow' - use 5s timeout instead of default 2s. |
| (...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 881 | 881 |
| 882 for (let action of unittest_tests) { | 882 for (let action of unittest_tests) { |
| 883 try { | 883 try { |
| 884 action(); | 884 action(); |
| 885 } catch (e) { | 885 } catch (e) { |
| 886 console.error("Caught error tying to setup test:", e); | 886 console.error("Caught error tying to setup test:", e); |
| 887 } | 887 } |
| 888 } | 888 } |
| 889 }); | 889 }); |
| 890 }); | 890 }); |
| OLD | NEW |