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

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

Issue 14736010: Add a new --extra-lib option to apidoc that allows us to specify an explicit .dart file that should… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 months 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 | utils/apidoc/apidoc.dart » ('j') | 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 * ## Installing ## 8 * ## Installing ##
9 * 9 *
10 * Use [pub][] to install this package. Add the following to your `pubspec.yaml` 10 * Use [pub][] to install this package. Add the following to your `pubspec.yaml`
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 */ 166 */
167 library unittest; 167 library unittest;
168 168
169 import 'dart:async'; 169 import 'dart:async';
170 import 'dart:collection'; 170 import 'dart:collection';
171 import 'dart:isolate'; 171 import 'dart:isolate';
172 import 'dart:math' show max; 172 import 'dart:math' show max;
173 import 'matcher.dart'; 173 import 'matcher.dart';
174 export 'matcher.dart'; 174 export 'matcher.dart';
175 175
176 // TODO(amouravski): We should not need to import mock here, but it's necessary
177 // to enable dartdoc on the mock library, as it's not picked up normally.
178 import 'mock.dart';
179
180 part 'src/config.dart'; 176 part 'src/config.dart';
181 part 'src/test_case.dart'; 177 part 'src/test_case.dart';
182 178
183 Configuration _config; 179 Configuration _config;
184 180
185 /** 181 /**
186 * [Configuration] used by the unittest library. Note that if a 182 * [Configuration] used by the unittest library. Note that if a
187 * configuration has not been set, calling this getter will create 183 * configuration has not been set, calling this getter will create
188 * a default configuration. 184 * a default configuration.
189 */ 185 */
(...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after
936 } 932 }
937 sb.write(location); 933 sb.write(location);
938 sb.write(' '); 934 sb.write(' ');
939 sb.write(position); 935 sb.write(position);
940 sb.write('\n'); 936 sb.write('\n');
941 } 937 }
942 } 938 }
943 } 939 }
944 return sb.toString(); 940 return sb.toString();
945 } 941 }
OLDNEW
« no previous file with comments | « no previous file | utils/apidoc/apidoc.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698