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

@ -23,7 +23,7 @@ export function init(moduleRef: NgModuleRef<StylingModule>) {
const componentRef = appRef.components[0];
const component = componentRef.instance;
const componentHostEl = componentRef.location.nativeElement;
const select = document.querySelector('#scenario-select') !as HTMLSelectElement;
const select = document.querySelector('#scenario-select')! as HTMLSelectElement;
function create(tplRefIdx: number) {
component.tplRefIdx = tplRefIdx;
@ -41,7 +41,9 @@ export function init(moduleRef: NgModuleRef<StylingModule>) {
appRef.tick();
}
function detectChanges() { appRef.tick(); }
function detectChanges() {
appRef.tick();
}
function modifyExternally() {
const buttonEls = componentHostEl.querySelectorAll('button') as HTMLButtonElement[];

View File

@ -35,7 +35,9 @@ export class StylingComponent {
tplRefIdx: number = 0;
staticStyle = {width: '10px'};
getTplRef(...tplRefs): TemplateRef<any> { return tplRefs[this.tplRefIdx]; }
getTplRef(...tplRefs): TemplateRef<any> {
return tplRefs[this.tplRefIdx];
}
}
@NgModule({

View File

@ -28,7 +28,7 @@ const SCENARIOS = [
describe('styling benchmark spec', () => {
afterEach(verifyNoBrowserErrors);
it('should render and interact to update and detect changes', async() => {
it('should render and interact to update and detect changes', async () => {
openBrowser({url: '/', ignoreBrowserSynchronization: true});
create();
const items = element.all(by.css('styling-bindings button'));
@ -38,7 +38,7 @@ describe('styling benchmark spec', () => {
expect(await items.first().getAttribute('title')).toBe('baz');
});
it('should render and run noop change detection', async() => {
it('should render and run noop change detection', async () => {
openBrowser({url: '/', ignoreBrowserSynchronization: true});
create();
const items = element.all(by.css('styling-bindings button'));
@ -51,7 +51,7 @@ describe('styling benchmark spec', () => {
// Create benchmarks for each possible test scenario.
SCENARIOS.forEach(({optionIndex, id}) => {
describe(id, () => {
it('should run create benchmark', async() => {
it('should run create benchmark', async () => {
await runStylingBenchmark(`styling.${id}.create`, {
work: () => create(),
prepare: () => {
@ -61,7 +61,7 @@ describe('styling benchmark spec', () => {
});
});
it('should run update benchmark', async() => {
it('should run update benchmark', async () => {
await runStylingBenchmark(`styling.${id}.update`, {
work: () => update(),
prepare: () => {
@ -71,7 +71,7 @@ describe('styling benchmark spec', () => {
});
});
it('should run detect changes benchmark', async() => {
it('should run detect changes benchmark', async () => {
await runStylingBenchmark(`styling.${id}.noop_cd`, {
work: () => detectChanges(),
prepare: () => {