OLD | NEW |
1 part of unittest; | |
2 | |
3 // 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 |
4 // 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 |
5 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
6 | 4 |
7 /** | 5 /** |
8 * testcase.dart: this file is sourced by unittest.dart. It defines [TestCase] | 6 * testcase.dart: this file is sourced by unittest.dart. It defines [TestCase] |
9 * and assumes unittest defines the type [TestFunction]. | 7 * and assumes unittest defines the type [TestFunction]. |
10 */ | 8 */ |
11 | 9 |
12 /** Summarizes information about a single test case. */ | 10 /** Summarizes information about a single test case. */ |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 } | 117 } |
120 } | 118 } |
121 | 119 |
122 void error(String messageText, String stack) { | 120 void error(String messageText, String stack) { |
123 result = ERROR; | 121 result = ERROR; |
124 message = messageText; | 122 message = messageText; |
125 stackTrace = stack; | 123 stackTrace = stack; |
126 _complete(); | 124 _complete(); |
127 } | 125 } |
128 } | 126 } |
OLD | NEW |