feat(core): update reference and doc to change async
to waitAsync
. (#37583)
The last commit change `async` to `waitForAsync`. This commit update all usages in the code and also update aio doc. PR Close #37583
This commit is contained in:

committed by
Alex Rickabaugh

parent
8f074296c2
commit
8fbf40bf40
@ -7,15 +7,15 @@
|
||||
*/
|
||||
|
||||
import {Xliff2} from '@angular/compiler/src/i18n/serializers/xliff2';
|
||||
import {async} from '@angular/core/testing';
|
||||
import {waitForAsync} from '@angular/core/testing';
|
||||
import {expect} from '@angular/platform-browser/testing/src/matchers';
|
||||
|
||||
import {configureCompiler, createComponent, HTML, serializeTranslations, validateHtml} from './integration_common';
|
||||
|
||||
describe('i18n XLIFF integration spec', () => {
|
||||
describe('(with LF line endings)', () => {
|
||||
beforeEach(
|
||||
async(() => configureCompiler(XLIFF2_TOMERGE + LF_LINE_ENDING_XLIFF2_TOMERGE, 'xlf2')));
|
||||
beforeEach(waitForAsync(
|
||||
() => configureCompiler(XLIFF2_TOMERGE + LF_LINE_ENDING_XLIFF2_TOMERGE, 'xlf2')));
|
||||
|
||||
it('should extract from templates', () => {
|
||||
const serializer = new Xliff2();
|
||||
@ -34,8 +34,8 @@ describe('i18n XLIFF integration spec', () => {
|
||||
});
|
||||
|
||||
describe('(with CRLF line endings', () => {
|
||||
beforeEach(
|
||||
async(() => configureCompiler(XLIFF2_TOMERGE + CRLF_LINE_ENDING_XLIFF2_TOMERGE, 'xlf2')));
|
||||
beforeEach(waitForAsync(
|
||||
() => configureCompiler(XLIFF2_TOMERGE + CRLF_LINE_ENDING_XLIFF2_TOMERGE, 'xlf2')));
|
||||
|
||||
it('should extract from templates (with CRLF line endings)', () => {
|
||||
const serializer = new Xliff2();
|
||||
|
@ -7,14 +7,15 @@
|
||||
*/
|
||||
|
||||
import {Xliff} from '@angular/compiler/src/i18n/serializers/xliff';
|
||||
import {async} from '@angular/core/testing';
|
||||
import {waitForAsync} from '@angular/core/testing';
|
||||
import {expect} from '@angular/platform-browser/testing/src/matchers';
|
||||
|
||||
import {configureCompiler, createComponent, HTML, serializeTranslations, validateHtml} from './integration_common';
|
||||
|
||||
describe('i18n XLIFF integration spec', () => {
|
||||
describe('(with LF line endings)', () => {
|
||||
beforeEach(async(() => configureCompiler(XLIFF_TOMERGE + LF_LINE_ENDING_XLIFF_TOMERGE, 'xlf')));
|
||||
beforeEach(
|
||||
waitForAsync(() => configureCompiler(XLIFF_TOMERGE + LF_LINE_ENDING_XLIFF_TOMERGE, 'xlf')));
|
||||
|
||||
it('should extract from templates', () => {
|
||||
const serializer = new Xliff();
|
||||
@ -33,8 +34,8 @@ describe('i18n XLIFF integration spec', () => {
|
||||
});
|
||||
|
||||
describe('(with CRLF line endings', () => {
|
||||
beforeEach(
|
||||
async(() => configureCompiler(XLIFF_TOMERGE + CRLF_LINE_ENDING_XLIFF_TOMERGE, 'xlf')));
|
||||
beforeEach(waitForAsync(
|
||||
() => configureCompiler(XLIFF_TOMERGE + CRLF_LINE_ENDING_XLIFF_TOMERGE, 'xlf')));
|
||||
|
||||
it('should extract from templates (with CRLF line endings)', () => {
|
||||
const serializer = new Xliff();
|
||||
|
@ -7,14 +7,14 @@
|
||||
*/
|
||||
|
||||
import {Xmb} from '@angular/compiler/src/i18n/serializers/xmb';
|
||||
import {async} from '@angular/core/testing';
|
||||
import {waitForAsync} from '@angular/core/testing';
|
||||
import {expect} from '@angular/platform-browser/testing/src/matchers';
|
||||
|
||||
import {configureCompiler, createComponent, HTML, serializeTranslations, validateHtml} from './integration_common';
|
||||
|
||||
describe('i18n XMB/XTB integration spec', () => {
|
||||
describe('(with LF line endings)', () => {
|
||||
beforeEach(async(() => configureCompiler(XTB + LF_LINE_ENDING_XTB, 'xtb')));
|
||||
beforeEach(waitForAsync(() => configureCompiler(XTB + LF_LINE_ENDING_XTB, 'xtb')));
|
||||
|
||||
it('should extract from templates', () => {
|
||||
const serializer = new Xmb();
|
||||
@ -33,7 +33,7 @@ describe('i18n XMB/XTB integration spec', () => {
|
||||
});
|
||||
|
||||
describe('(with CRLF line endings', () => {
|
||||
beforeEach(async(() => configureCompiler(XTB + CRLF_LINE_ENDING_XTB, 'xtb')));
|
||||
beforeEach(waitForAsync(() => configureCompiler(XTB + CRLF_LINE_ENDING_XTB, 'xtb')));
|
||||
|
||||
it('should extract from templates (with CRLF line endings)', () => {
|
||||
const serializer = new Xmb();
|
||||
|
Reference in New Issue
Block a user