Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1124)

Side by Side Diff: pkg/unittest/test_case.dart

Issue 11275054: Modified unittest to use new argument syntax. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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. */
11
12 part of unittest;
13
11 class TestCase { 14 class TestCase {
12 /** Identifier for this test. */ 15 /** Identifier for this test. */
13 final int id; 16 final int id;
14 17
15 /** A description of what the test is specifying. */ 18 /** A description of what the test is specifying. */
16 final String description; 19 final String description;
17 20
18 /** The setup function to call before the test, if any. */ 21 /** The setup function to call before the test, if any. */
19 Function _setUp; 22 Function _setUp;
20 23
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 } 120 }
118 } 121 }
119 122
120 void error(String messageText, String stack) { 123 void error(String messageText, String stack) {
121 result = ERROR; 124 result = ERROR;
122 message = messageText; 125 message = messageText;
123 stackTrace = stack; 126 stackTrace = stack;
124 _complete(); 127 _complete();
125 } 128 }
126 } 129 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698