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

PR Close #36628
This commit is contained in:
Joey Perrott
2020-04-13 17:43:52 -07:00
committed by atscott
parent 4b3f9ac739
commit 26f49151e7
1163 changed files with 31727 additions and 24036 deletions

View File

@ -5,7 +5,7 @@
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {Observable, of } from 'rxjs';
import {Observable, of} from 'rxjs';
import {timeout} from 'rxjs/operators';
import {asyncTest, isPhantomJS} from '../test-util';
@ -14,7 +14,9 @@ describe('Observable.timeout', () => {
let log: any[];
let observable1: Observable<any>;
beforeEach(() => { log = []; });
beforeEach(() => {
log = [];
});
it('timeout func callback should run in the correct zone', asyncTest((done: any) => {
if (isPhantomJS()) {
@ -23,7 +25,9 @@ describe('Observable.timeout', () => {
}
const constructorZone1: Zone = Zone.current.fork({name: 'Constructor Zone1'});
const subscriptionZone: Zone = Zone.current.fork({name: 'Subscription Zone'});
observable1 = constructorZone1.run(() => { return of (1).pipe(timeout(10)); });
observable1 = constructorZone1.run(() => {
return of(1).pipe(timeout(10));
});
subscriptionZone.run(() => {
observable1.subscribe(
@ -31,7 +35,9 @@ describe('Observable.timeout', () => {
log.push(result);
expect(Zone.current.name).toEqual(subscriptionZone.name);
},
(err: any) => { fail('should not call error'); },
(err: any) => {
fail('should not call error');
},
() => {
log.push('completed');
expect(Zone.current.name).toEqual(subscriptionZone.name);
@ -44,7 +50,9 @@ describe('Observable.timeout', () => {
it('promise should run in the correct zone', asyncTest((done: any) => {
const constructorZone1: Zone = Zone.current.fork({name: 'Constructor Zone1'});
const subscriptionZone: Zone = Zone.current.fork({name: 'Subscription Zone'});
const promise: any = constructorZone1.run(() => { return of (1).toPromise(); });
const promise: any = constructorZone1.run(() => {
return of(1).toPromise();
});
subscriptionZone.run(() => {
promise.then(
@ -53,7 +61,9 @@ describe('Observable.timeout', () => {
expect(result).toEqual(1);
done();
},
(err: any) => { fail('should not call error'); });
(err: any) => {
fail('should not call error');
});
});
}, Zone.root));
});