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

@ -37,9 +37,13 @@ export function ifEnvSupportsWithDone(test: any, block: Function): (done: Functi
function _ifEnvSupports(test: any, block: Function, withDone = false) {
if (withDone) {
return function(done?: Function) { _runTest(test, block, done); };
return function(done?: Function) {
_runTest(test, block, done);
};
} else {
return function() { _runTest(test, block, undefined); };
return function() {
_runTest(test, block, undefined);
};
}
}
@ -89,8 +93,9 @@ export function isSupportSetErrorStack() {
export function asyncTest(this: unknown, testFn: Function, zone: Zone = Zone.current) {
const AsyncTestZoneSpec = (Zone as any)['AsyncTestZoneSpec'];
return (done: Function) => {
let asyncTestZone: Zone =
zone.fork(new AsyncTestZoneSpec(() => {}, (error: Error) => { fail(error); }, 'asyncTest'));
let asyncTestZone: Zone = zone.fork(new AsyncTestZoneSpec(() => {}, (error: Error) => {
fail(error);
}, 'asyncTest'));
asyncTestZone.run(testFn, this, [done]);
};
}