diff --git a/pkg/stack_trace/lib/stack_trace.dart b/pkg/stack_trace/lib/stack_trace.dart index f031f956b85..dba95e9474a 100644 --- a/pkg/stack_trace/lib/stack_trace.dart +++ b/pkg/stack_trace/lib/stack_trace.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. /** + * Stack trace generation and parsing. + * * ## Installing ## * * Use [pub][] to install this package. Add the following to your `pubspec.yaml` diff --git a/pkg/unittest/lib/matcher.dart b/pkg/unittest/lib/matcher.dart index 09dd7eb9aa8..4830b8f619c 100644 --- a/pkg/unittest/lib/matcher.dart +++ b/pkg/unittest/lib/matcher.dart @@ -2,28 +2,21 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. /** - * The matcher library provides a 3rd generation assertion mechanism, drawing - * inspiration from [Hamcrest](http://code.google.com/p/hamcrest/). + * Support for specifying test expectations, + * such as for unit tests. * - * ## Installing ## - * - * Use [pub][] to install this package. Add the following to your `pubspec.yaml` - * file. - * - * dependencies: - * unittest: any - * - * Then run `pub install`. - * - * Import this into your Dart code with: + * This library is included in the + * [unittest package on pub.dartlang.org] + * (http://pub.dartlang.org/packages/unittest). + * Import this library into your Dart code with: * * import 'package:unittest/matcher.dart'; * - * For more information, see the [unittest package on pub.dartlang.org]. - * (http://pub.dartlang.org/packages/unittest). - * - * [pub]: http://pub.dartlang.org - * [pkg]: http://pub.dartlang.org/packages/matcher + * The matcher library provides a third-generation assertion mechanism, drawing + * inspiration from [Hamcrest](http://code.google.com/p/hamcrest/). + * For more information, see + * [Unit Testing with Dart] + * (http://www.dartlang.org/articles/dart-unit-tests/). */ library matcher; diff --git a/pkg/unittest/lib/unittest.dart b/pkg/unittest/lib/unittest.dart index e5923f3979f..40408708603 100644 --- a/pkg/unittest/lib/unittest.dart +++ b/pkg/unittest/lib/unittest.dart @@ -3,38 +3,33 @@ // BSD-style license that can be found in the LICENSE file. /** - * A library for writing dart unit tests. + * Support for writing Dart unit tests. * - * ## Installing ## + * For information on installing and importing this library, see the + * [unittest package on pub.dartlang.org] + * (http://pub.dartlang.org/packages/unittest). * - * Use [pub][] to install this package. Add the following to your `pubspec.yaml` - * file. + * **See also:** + * [Unit Testing with Dart] + * (http://www.dartlang.org/articles/dart-unit-tests/) * - * dependencies: - * unittest: any - * - * Then run `pub install`. - * - * For more information, see the - * [unittest package on pub.dartlang.org][pkg]. - * - * See the [Getting Started](http://pub.dartlang.org/doc) - * guide for more details. - * - * ##Concepts## + * ##Concepts * * * __Tests__: Tests are specified via the top-level function [test], they can be * organized together using [group]. + * * * __Checks__: Test expectations can be specified via [expect] + * * * __Matchers__: [expect] assertions are written declaratively using the * [Matcher] class. + * * * __Configuration__: The framework can be adapted by setting * [unittestConfiguration] with a [Configuration]. See the other libraries * in the `unittest` package for alternative implementations of * [Configuration] including `compact_vm_config.dart`, `html_config.dart` and * `html_enhanced_config.dart`. * - * ##Examples## + * ##Examples * * A trivial test: * @@ -131,15 +126,12 @@ * Timer.run()], as the Future exception handler may not capture exceptions * in such code. * - * Note: due to some language limitations we have to use different functions + * Note: Due to some language limitations we have to use different functions * depending on the number of positional arguments of the callback. In the * future, we plan to expose a single `expectAsync` function that can be used * regardless of the number of positional arguments. This requires new langauge * features or fixes to the current spec (e.g. see * [Issue 2706](http://dartbug.com/2706)). - * - * [pub]: http://pub.dartlang.org - * [pkg]: http://pub.dartlang.org/packages/unittest */ library unittest;