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

Side by Side Diff: README.md

Issue 2515303002: Add expectAsyncX and expectAsyncUntilX methods, and deprecate the old methods. (Closed)
Patch Set: Mark parameter types as Object. Created 4 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
« no previous file with comments | « CHANGELOG.md ('k') | lib/src/frontend/expect_async.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 `test` provides a standard way of writing and running tests in Dart. 1 `test` provides a standard way of writing and running tests in Dart.
2 2
3 * [Writing Tests](#writing-tests) 3 * [Writing Tests](#writing-tests)
4 * [Running Tests](#running-tests) 4 * [Running Tests](#running-tests)
5 * [Restricting Tests to Certain Platforms](#restricting-tests-to-certain-platf orms) 5 * [Restricting Tests to Certain Platforms](#restricting-tests-to-certain-platf orms)
6 * [Platform Selectors](#platform-selectors) 6 * [Platform Selectors](#platform-selectors)
7 * [Running Tests on Dartium](#running-tests-on-dartium) 7 * [Running Tests on Dartium](#running-tests-on-dartium)
8 * [Asynchronous Tests](#asynchronous-tests) 8 * [Asynchronous Tests](#asynchronous-tests)
9 * [Running Tests With Custom HTML](#running-tests-with-custom-html) 9 * [Running Tests With Custom HTML](#running-tests-with-custom-html)
10 * [Configuring Tests](#configuring-tests) 10 * [Configuring Tests](#configuring-tests)
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 336
337 ```dart 337 ```dart
338 import "dart:async"; 338 import "dart:async";
339 339
340 import "package:test/test.dart"; 340 import "package:test/test.dart";
341 341
342 void main() { 342 void main() {
343 test("Stream.fromIterable() emits the values in the iterable", () { 343 test("Stream.fromIterable() emits the values in the iterable", () {
344 var stream = new Stream.fromIterable([1, 2, 3]); 344 var stream = new Stream.fromIterable([1, 2, 3]);
345 345
346 stream.listen(expectAsync((number) { 346 stream.listen(expectAsync1((number) {
347 expect(number, inInclusiveRange(1, 3)); 347 expect(number, inInclusiveRange(1, 3));
348 }, count: 3)); 348 }, count: 3));
349 }); 349 });
350 } 350 }
351 ``` 351 ```
352 352
353 [expectAsync]: http://www.dartdocs.org/documentation/test/latest/index.html#test /test@id_expectAsync 353 [expectAsync]: http://www.dartdocs.org/documentation/test/latest/index.html#test /test@id_expectAsync
354 354
355 ## Running Tests With Custom HTML 355 ## Running Tests With Custom HTML
356 356
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
663 available to tests. 663 available to tests.
664 664
665 [api]: http://www.dartdocs.org/documentation/test/latest/index.html 665 [api]: http://www.dartdocs.org/documentation/test/latest/index.html
666 666
667 The test runner also supports a machine-readable JSON-based reporter. This 667 The test runner also supports a machine-readable JSON-based reporter. This
668 reporter allows the test runner to be wrapped and its progress presented in 668 reporter allows the test runner to be wrapped and its progress presented in
669 custom ways (for example, in an IDE). See [the protocol documentation][json] for 669 custom ways (for example, in an IDE). See [the protocol documentation][json] for
670 more details. 670 more details.
671 671
672 [json]: https://github.com/dart-lang/test/blob/master/doc/json_reporter.md 672 [json]: https://github.com/dart-lang/test/blob/master/doc/json_reporter.md
OLDNEW
« no previous file with comments | « CHANGELOG.md ('k') | lib/src/frontend/expect_async.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698