| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 /** | 5 /** |
| 6 * A library for writing dart unit tests. | 6 * A library for writing dart unit tests. |
| 7 * | 7 * |
| 8 * To import this library, specify the relative path to | 8 * To import this library, specify the relative path to |
| 9 * lib/unittest/unittest.dart. | 9 * lib/unittest/unittest.dart. |
| 10 * | 10 * |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 | 140 |
| 141 #source('collection_matchers.dart'); | 141 #source('collection_matchers.dart'); |
| 142 #source('config.dart'); | 142 #source('config.dart'); |
| 143 #source('core_matchers.dart'); | 143 #source('core_matchers.dart'); |
| 144 #source('description.dart'); | 144 #source('description.dart'); |
| 145 #source('expect.dart'); | 145 #source('expect.dart'); |
| 146 #source('future_matchers.dart'); | 146 #source('future_matchers.dart'); |
| 147 #source('interfaces.dart'); | 147 #source('interfaces.dart'); |
| 148 #source('map_matchers.dart'); | 148 #source('map_matchers.dart'); |
| 149 #source('matcher.dart'); | 149 #source('matcher.dart'); |
| 150 #source('mock.dart'); |
| 150 #source('numeric_matchers.dart'); | 151 #source('numeric_matchers.dart'); |
| 151 #source('operator_matchers.dart'); | 152 #source('operator_matchers.dart'); |
| 152 #source('string_matchers.dart'); | 153 #source('string_matchers.dart'); |
| 153 #source('test_case.dart'); | 154 #source('test_case.dart'); |
| 154 | 155 |
| 155 /** [Configuration] used by the unittest library. */ | 156 /** [Configuration] used by the unittest library. */ |
| 156 Configuration _config = null; | 157 Configuration _config = null; |
| 157 | 158 |
| 158 /** | 159 /** |
| 159 * Set the [Configuration] used by the unittest library. Returns any | 160 * Set the [Configuration] used by the unittest library. Returns any |
| (...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 767 _config.onInit(); | 768 _config.onInit(); |
| 768 | 769 |
| 769 // Immediately queue the suite up. It will run after a timeout (i.e. after | 770 // Immediately queue the suite up. It will run after a timeout (i.e. after |
| 770 // main() has returned). | 771 // main() has returned). |
| 771 _defer(_runTests); | 772 _defer(_runTests); |
| 772 } | 773 } |
| 773 | 774 |
| 774 /** Signature for a test function. */ | 775 /** Signature for a test function. */ |
| 775 typedef void TestFunction(); | 776 typedef void TestFunction(); |
| 776 | 777 |
| OLD | NEW |