| OLD | NEW |
| 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 } | 169 } |
| 170 ``` | 170 ``` |
| 171 | 171 |
| 172 [TestOn]: http://www.dartdocs.org/documentation/test/latest/index.html#test/test
.TestOn | 172 [TestOn]: http://www.dartdocs.org/documentation/test/latest/index.html#test/test
.TestOn |
| 173 | 173 |
| 174 The string you pass to `@TestOn` is what's called a "platform selector", and it | 174 The string you pass to `@TestOn` is what's called a "platform selector", and it |
| 175 specifies exactly which platforms a test can run on. It can be as simple as the | 175 specifies exactly which platforms a test can run on. It can be as simple as the |
| 176 name of a platform, or a more complex Dart-like boolean expression involving | 176 name of a platform, or a more complex Dart-like boolean expression involving |
| 177 these platform names. | 177 these platform names. |
| 178 | 178 |
| 179 You can also declare that your entire package only works on certain platforms by |
| 180 adding a [`test_on` field][test_on] to your package config file. |
| 181 |
| 182 [test_on]: https://github.com/dart-lang/test/blob/master/doc/package_config.md#t
est_on |
| 183 |
| 179 ### Platform Selectors | 184 ### Platform Selectors |
| 180 | 185 |
| 181 Platform selectors use the [boolean selector syntax][] defined in the | 186 Platform selectors use the [boolean selector syntax][] defined in the |
| 182 [`boolean_selector` package][boolean_selector], which is a subset of Dart's | 187 [`boolean_selector` package][boolean_selector], which is a subset of Dart's |
| 183 expression syntax that only supports boolean operations. The following | 188 expression syntax that only supports boolean operations. The following |
| 184 identifiers are defined: | 189 identifiers are defined: |
| 185 | 190 |
| 186 [boolean selector syntax]: https://github.com/dart-lang/boolean_selector/blob/ma
ster/README.md | 191 [boolean selector syntax]: https://github.com/dart-lang/boolean_selector/blob/ma
ster/README.md |
| 187 | 192 |
| 188 [boolean_selector]: https://pub.dartlang.org/packages/boolean_selector | 193 [boolean_selector]: https://pub.dartlang.org/packages/boolean_selector |
| (...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 639 available to tests. | 644 available to tests. |
| 640 | 645 |
| 641 [api]: http://www.dartdocs.org/documentation/test/latest/index.html | 646 [api]: http://www.dartdocs.org/documentation/test/latest/index.html |
| 642 | 647 |
| 643 The test runner also supports a machine-readable JSON-based reporter. This | 648 The test runner also supports a machine-readable JSON-based reporter. This |
| 644 reporter allows the test runner to be wrapped and its progress presented in | 649 reporter allows the test runner to be wrapped and its progress presented in |
| 645 custom ways (for example, in an IDE). See [the protocol documentation][json] for | 650 custom ways (for example, in an IDE). See [the protocol documentation][json] for |
| 646 more details. | 651 more details. |
| 647 | 652 |
| 648 [json]: https://github.com/dart-lang/test/blob/master/doc/json_reporter.md | 653 [json]: https://github.com/dart-lang/test/blob/master/doc/json_reporter.md |
| OLD | NEW |