build: reformat repo to new clang@1.4.0 (#36613)

PR Close #36613
This commit is contained in:
Joey Perrott
2020-04-13 16:40:21 -07:00
committed by atscott
parent 5e80e7e216
commit 698b0288be
1160 changed files with 31667 additions and 24000 deletions

View File

@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {Observable, asapScheduler, concat, range} from 'rxjs';
import {asapScheduler, concat, Observable, range} from 'rxjs';
import {asyncTest} from '../test-util';
@ -21,7 +21,9 @@ describe('Observable.concat', () => {
let concatObservable: any;
beforeEach(() => { log = []; });
beforeEach(() => {
log = [];
});
it('concat func callback should run in the correct zone', () => {
observable1 = constructorZone1.run(() => {
@ -33,9 +35,13 @@ describe('Observable.concat', () => {
});
});
observable2 = constructorZone2.run(() => { return range(3, 4); });
observable2 = constructorZone2.run(() => {
return range(3, 4);
});
constructorZone3.run(() => { concatObservable = concat(observable1, observable2); });
constructorZone3.run(() => {
concatObservable = concat(observable1, observable2);
});
subscriptionZone.run(() => {
concatObservable.subscribe((concat: any) => {
@ -62,10 +68,13 @@ describe('Observable.concat', () => {
});
});
observable2 = constructorZone2.run(() => { return range(3, 4); });
observable2 = constructorZone2.run(() => {
return range(3, 4);
});
constructorZone3.run(
() => { concatObservable = concat(observable1, observable2, asapScheduler); });
constructorZone3.run(() => {
concatObservable = concat(observable1, observable2, asapScheduler);
});
subscriptionZone.run(() => {
concatObservable.subscribe(
@ -73,7 +82,9 @@ describe('Observable.concat', () => {
expect(Zone.current.name).toEqual(subscriptionZone.name);
log.push(concat);
},
(error: any) => { fail('subscribe failed' + error); },
(error: any) => {
fail('subscribe failed' + error);
},
() => {
expect(Zone.current.name).toEqual(subscriptionZone.name);
expect(log).toEqual([1, 2, 3, 4, 5, 6]);