| 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 */ | 136 */ |
| 137 #library('unittest'); | 137 #library('unittest'); |
| 138 | 138 |
| 139 #import('dart:isolate'); | 139 #import('dart:isolate'); |
| 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('interfaces.dart'); | 147 #source('interfaces.dart'); |
| 147 #source('map_matchers.dart'); | 148 #source('map_matchers.dart'); |
| 148 #source('matcher.dart'); | 149 #source('matcher.dart'); |
| 149 #source('numeric_matchers.dart'); | 150 #source('numeric_matchers.dart'); |
| 150 #source('operator_matchers.dart'); | 151 #source('operator_matchers.dart'); |
| 151 #source('string_matchers.dart'); | 152 #source('string_matchers.dart'); |
| 152 #source('test_case.dart'); | 153 #source('test_case.dart'); |
| 153 | 154 |
| 154 /** [Configuration] used by the unittest library. */ | 155 /** [Configuration] used by the unittest library. */ |
| 155 Configuration _config = null; | 156 Configuration _config = null; |
| (...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 604 } | 605 } |
| 605 _config.onInit(); | 606 _config.onInit(); |
| 606 | 607 |
| 607 // Immediately queue the suite up. It will run after a timeout (i.e. after | 608 // Immediately queue the suite up. It will run after a timeout (i.e. after |
| 608 // main() has returned). | 609 // main() has returned). |
| 609 _defer(_runTests); | 610 _defer(_runTests); |
| 610 } | 611 } |
| 611 | 612 |
| 612 /** Signature for a test function. */ | 613 /** Signature for a test function. */ |
| 613 typedef void TestFunction(); | 614 typedef void TestFunction(); |
| OLD | NEW |