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

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

Issue 11312160: Hack fix to include Mock in the API documentation. (Closed) Base URL: https://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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 * A library for writing dart unit tests. 6 * A library for writing dart unit tests.
7 * 7 *
8 * To import this library, use the pub package manager. 8 * To import this library, use the pub package manager.
9 * Create a pubspec.yaml file in your project and add 9 * Create a pubspec.yaml file in your project and add
10 * a dependency on unittest with the following lines: 10 * a dependency on unittest with the following lines:
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 * }); 144 * });
145 * } 145 * }
146 * 146 *
147 */ 147 */
148 library unittest; 148 library unittest;
149 149
150 import 'dart:isolate'; 150 import 'dart:isolate';
151 import 'matcher.dart'; 151 import 'matcher.dart';
152 export 'matcher.dart'; 152 export 'matcher.dart';
153 153
154 // TODO(amouravski): We should not need to import mock here, but it's necessary
155 // to enable dartdoc on the mock library, as it's not picked up normally.
156 import 'mock.dart';
157
154 part 'src/config.dart'; 158 part 'src/config.dart';
155 part 'src/test_case.dart'; 159 part 'src/test_case.dart';
156 160
157 /** [Configuration] used by the unittest library. */ 161 /** [Configuration] used by the unittest library. */
158 Configuration _config = null; 162 Configuration _config = null;
159 163
160 Configuration get config => _config; 164 Configuration get config => _config;
161 165
162 /** 166 /**
163 * Set the [Configuration] used by the unittest library. Returns any 167 * Set the [Configuration] used by the unittest library. Returns any
(...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after
895 } 899 }
896 900
897 /** Enable a test by ID. */ 901 /** Enable a test by ID. */
898 void enableTest(int testId) => _setTestEnabledState(testId, true); 902 void enableTest(int testId) => _setTestEnabledState(testId, true);
899 903
900 /** Disable a test by ID. */ 904 /** Disable a test by ID. */
901 void disableTest(int testId) => _setTestEnabledState(testId, false); 905 void disableTest(int testId) => _setTestEnabledState(testId, false);
902 906
903 /** Signature for a test function. */ 907 /** Signature for a test function. */
904 typedef void TestFunction(); 908 typedef void TestFunction();
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698