angular-cn/aio/content/guide
George Kalpakas 8eb4a9d395 docs: fix docs and associated code snippets for enabling more macro tasks in `fakeAsync()` (#35778)
In the `testing` guide, there is a section discussing configuring
`fakeAsync()` to handle more macro tasks (e.g.
`HTMLCanvasElement#toBlob()`).

Previously, the corresponding code snippets (some of which were
hard-coded in the guide) were incorrect/incomplete and the associated
tests were broken. This was discovered while enabling docs examples unit
tests in #34374.

This commit fixes the code snippets and associated tests and ensures the
examples used in the guide come from an example app (i.e. are not
hard-coded).

Note: The docs examples unit tests are currently not run on CI. This
will be fixed in #34374.

PR Close #35778
2020-03-02 13:30:25 -08:00
..
accessibility.md docs: port accessibility app from stackblitz to aio (#32377) 2019-09-10 13:11:48 -04:00
ajs-quick-reference.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
angular-compiler-options.md docs: changes AoT to AOT for consistency (#35112) 2020-02-04 10:43:33 -08:00
animations.md feat(docs-infra): simplify image styles and remove figure references (#33748) 2019-11-14 09:27:02 -08:00
aot-compiler.md docs: Fix minor typos and coding styles (#35325) 2020-02-13 13:31:30 -08:00
aot-metadata-errors.md docs: changes AoT to AOT for consistency (#35112) 2020-02-04 10:43:33 -08:00
app-shell.md docs: update universal docs for new ivy implementation (#33040) 2019-10-21 11:25:44 -04:00
architecture-components.md feat(docs-infra): simplify image styles and remove figure references (#33748) 2019-11-14 09:27:02 -08:00
architecture-modules.md feat(docs-infra): simplify image styles and remove figure references (#33748) 2019-11-14 09:27:02 -08:00
architecture-next-steps.md docs: edit displaying-data page to introduce section (#35507) 2020-02-20 10:50:05 -08:00
architecture-services.md feat(docs-infra): simplify image styles and remove figure references (#33748) 2019-11-14 09:27:02 -08:00
architecture.md docs: restructure nav for beginner concepts (#34681) 2020-02-04 08:57:31 -08:00
attribute-directives.md docs: change p to pointer for better understanding (#34927) 2020-01-28 13:04:25 -08:00
bazel.md docs: Update link to angular + bazel example app (#33409) 2019-11-04 20:07:37 +00:00
bootstrapping.md docs: Adds NgModule into back-ticks (#34302) 2019-12-09 11:36:35 -08:00
browser-support.md docs: drop support for Android Marshmallow and older Android versions (#34540) 2020-01-27 10:46:26 -08:00
build.md docs: Fix links to Webpack docs (#34326) 2019-12-10 09:18:17 -08:00
cheatsheet.md docs: clarify meaning of injectable decorator (#31573) 2019-07-16 23:57:50 -04:00
cli-builder.md docs: add link to publish a library in ivy guide (#34986) 2020-01-27 10:50:52 -08:00
comparing-observables.md fix(docs-infra): convert hard-coded `comparing-observables` examples into a proper mini-app (#34327) 2020-01-21 13:14:46 -05:00
complex-animation-sequences.md docs: remove redundant whitespaces and fix minor typos (#33422) 2019-10-29 11:39:17 -07:00
component-interaction.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
component-styles.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
creating-libraries.md docs: add asset info to library guide (#34217) 2020-02-07 13:57:18 -08:00
dependency-injection-in-action.md docs(core): fix typo in dependency injection guide (interactive --> interacting) (#34853) 2020-01-21 13:03:04 -05:00
dependency-injection-navtree.md feat(docs-infra): simplify image styles and remove figure references (#33748) 2019-11-14 09:27:02 -08:00
dependency-injection-providers.md docs(core): add missing quote in dependency injection provider guide (#34854) 2020-01-21 13:02:29 -05:00
dependency-injection.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
deployment.md docs: add amazon s3 builder package (#34783) 2020-02-24 09:13:58 -08:00
deprecations.md docs: add deprecation info about default currency code (#32584) 2020-01-13 09:57:06 -08:00
displaying-data.md docs: edit displaying-data page to introduce section (#35507) 2020-02-20 10:50:05 -08:00
docs-style-guide.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
dynamic-component-loader.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
dynamic-form.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
elements.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
entry-components.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
feature-modules.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
file-structure.md docs: expand type-check info in update page (#33577) 2019-11-13 11:08:51 -08:00
form-validation.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
forms-overview.md feat(docs-infra): simplify image styles and remove figure references (#33748) 2019-11-14 09:27:02 -08:00
forms.md feat(docs-infra): simplify image styles and remove figure references (#33748) 2019-11-14 09:27:02 -08:00
frequent-ngmodules.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
glossary.md docs: fix typo in glossary (#35108) 2020-02-07 09:57:25 -08:00
hierarchical-dependency-injection.md fix(docs-infra): fix parameters with @Optional() decorator do not match declared, optional type (#35150) 2020-02-07 09:58:31 -08:00
http.md docs(http): fix typo (#33978) 2019-11-22 12:36:43 -05:00
i18n.md docs: Ivy i18n guide updates for localize option (#34053) 2019-12-03 10:14:15 -08:00
ivy-compatibility-examples.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
ivy-compatibility.md docs(ivy): add anchor-node insert before/after difference (#35207) 2020-02-07 09:56:37 -08:00
ivy.md docs: add link to publish a library in ivy guide (#34986) 2020-01-27 10:50:52 -08:00
language-service.md feat(docs-infra): simplify image styles and remove figure references (#33748) 2019-11-14 09:27:02 -08:00
lazy-loading-ngmodules.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
libraries.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
lifecycle-hooks.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
migration-dynamic-flag.md docs: fix migrations formatting (#33267) 2019-12-05 13:06:01 -08:00
migration-injectable.md docs: fix migrations formatting (#33267) 2019-12-05 13:06:01 -08:00
migration-localize.md docs: fix migrations formatting (#33267) 2019-12-05 13:06:01 -08:00
migration-module-with-providers.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
migration-renderer.md docs: fix migrations formatting (#33267) 2019-12-05 13:06:01 -08:00
migration-undecorated-classes.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
module-types.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
ngmodule-api.md docs: remove prerequisite section in NgModules docs (#31169) 2019-07-17 13:26:00 -04:00
ngmodule-faq.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
ngmodule-vs-jsmodule.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
ngmodules.md refactor(docs-infra): remove `linenums=false` since it is now the default (#31674) 2019-07-24 14:38:54 -07:00
npm-packages.md docs: fix broken links (#34311) 2019-12-10 09:17:12 -08:00
observables-in-angular.md docs: fix typo in Observables in Angular guide (#33509) 2019-10-31 22:21:00 +00:00
observables.md docs: do not add auto-code-links to observables example (#34797) 2020-01-16 12:06:25 -05:00
pipes.md feat(docs-infra): simplify image styles and remove figure references (#33748) 2019-11-14 09:27:02 -08:00
practical-observable-usage.md
providers.md docs: correct full stop position in providers section (#34712) 2020-01-13 07:20:24 -08:00
reactive-forms.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
releases.md docs: update release.md and rename 'beta' releases to 'next' (#35276) 2020-02-13 10:00:50 -08:00
reusable-animations.md docs: remove redundant whitespaces and fix minor typos (#33422) 2019-10-29 11:39:17 -07:00
route-animations.md docs: Clarifies code section is a continuation from the section above (#35111) 2020-02-06 15:31:41 -08:00
router.md docs: fix routing code to use `navigate` (#35176) 2020-02-24 09:00:03 -08:00
rx-library.md docs: update rxjs refs (#31780) 2019-08-08 12:15:29 -07:00
schematics-authoring.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
schematics-for-libraries.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
schematics.md docs: remove redundant dashes (#34172) 2019-12-02 11:26:21 -08:00
security.md docs: add CSRF to XSRF section of http guide (#32933) 2019-11-21 16:57:12 -05:00
service-worker-communications.md refactor(docs-infra): remove `linenums=false` since it is now the default (#31674) 2019-07-24 14:38:54 -07:00
service-worker-config.md docs(service-worker): fix paths for `ngsw-config` command to match latest CLI (#34215) 2019-12-03 10:42:07 -08:00
service-worker-devops.md docs: clarrify use of sw behind redirect (#32915) 2019-10-21 16:50:52 -04:00
service-worker-getting-started.md feat(docs-infra): simplify image styles and remove figure references (#33748) 2019-11-14 09:27:02 -08:00
service-worker-intro.md docs: reference articles specifically (#32221) 2019-08-26 15:03:04 -07:00
set-document-title.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
setup-local.md docs: update getting started topics to avoid duplicate topic names (#35457) 2020-02-25 13:10:30 -08:00
sharing-ngmodules.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
singleton-services.md docs: reword explanation for using singleton services decorative to be more understandable (#35002) 2020-03-02 09:30:54 -08:00
static-query-migration.md build: bump year (#34651) 2020-01-13 07:21:43 -08:00
structural-directives.md docs: missing item variable in structural directives example (#35213) 2020-02-07 11:32:37 -08:00
styleguide.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
template-syntax.md docs: Fix typo in template syntax (#35767) 2020-03-02 08:16:06 -08:00
template-typecheck.md fix(ivy): add strictLiteralTypes to align Ivy + VE checking of literals (#35462) 2020-02-21 12:36:11 -08:00
testing.md docs: fix docs and associated code snippets for enabling more macro tasks in `fakeAsync()` (#35778) 2020-03-02 13:30:25 -08:00
transition-and-triggers.md docs: fix animations example/remove 1st person (#35046) 2020-02-04 08:58:04 -08:00
typescript-configuration.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
universal.md docs: add more relevant statistic for page load (#35649) 2020-02-24 17:26:40 -08:00
updating-to-version-9.md docs: Minor updates to Updating to Angular version 9 topic (#35135) 2020-02-07 09:57:56 -08:00
updating.md docs: remove the release schedule from docs (#34474) 2020-02-06 14:29:21 -08:00
upgrade-performance.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
upgrade-setup.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
upgrade.md docs: add downgraded output kebab-case example (#35581) 2020-02-20 10:55:34 -08:00
user-input.md feat: add a temp solution to support passive event listeners. (#34503) 2020-02-24 17:30:04 -08:00
using-libraries.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
visual-studio-2015.md docs: remove redundant whitespaces and fix minor typos (#33422) 2019-10-29 11:39:17 -07:00
web-worker.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
workspace-config.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
zone.md docs: correct spelling of 'detection' (#35723) 2020-02-27 10:49:15 -08:00