| 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 * 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] |
| 7 * and assumes unittest defines the type [TestFunction]. | 7 * and assumes unittest defines the type [TestFunction]. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 /** Summarizes information about a single test case. */ | 10 /** Summarizes information about a single test case. */ |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 } | 120 } |
| 121 } | 121 } |
| 122 | 122 |
| 123 void error(String messageText, String stack) { | 123 void error(String messageText, String stack) { |
| 124 result = ERROR; | 124 result = ERROR; |
| 125 message = messageText; | 125 message = messageText; |
| 126 stackTrace = stack; | 126 stackTrace = stack; |
| 127 _complete(); | 127 _complete(); |
| 128 } | 128 } |
| 129 } | 129 } |
| OLD | NEW |