style(compiler): reformat of codebase with new clang-format version (#36520)

This commit reformats the packages/compiler tree using the new version of
clang-format.

PR Close #36520
This commit is contained in:
Alex Rickabaugh
2020-04-08 10:14:18 -07:00
committed by atscott
parent d5aa6b5bd6
commit cbed582a1a
193 changed files with 5904 additions and 4574 deletions

View File

@ -19,7 +19,9 @@ import {extractSchema} from './schema_extractor';
{
describe('DOMElementSchema', () => {
let registry: DomElementSchemaRegistry;
beforeEach(() => { registry = new DomElementSchemaRegistry(); });
beforeEach(() => {
registry = new DomElementSchemaRegistry();
});
it('should detect elements', () => {
expect(registry.hasElement('div', [])).toBeTruthy();
@ -97,8 +99,9 @@ import {extractSchema} from './schema_extractor';
expect(registry.hasElement('unknown', [NO_ERRORS_SCHEMA])).toBeTruthy();
});
it('should re-map property names that are specified in DOM facade',
() => { expect(registry.getMappedPropName('readonly')).toEqual('readOnly'); });
it('should re-map property names that are specified in DOM facade', () => {
expect(registry.getMappedPropName('readonly')).toEqual('readOnly');
});
it('should not re-map property names that are not specified in DOM facade', () => {
expect(registry.getMappedPropName('title')).toEqual('title');
@ -173,8 +176,9 @@ If 'onAnything' is a directive input, make sure the directive is imported by the
});
describe('Angular custom elements', () => {
it('should support <ng-container>',
() => { expect(registry.hasProperty('ng-container', 'id', [])).toBeFalsy(); });
it('should support <ng-container>', () => {
expect(registry.hasProperty('ng-container', 'id', [])).toBeFalsy();
});
it('should support <ng-content>', () => {
expect(registry.hasProperty('ng-content', 'id', [])).toBeFalsy();
@ -185,8 +189,9 @@ If 'onAnything' is a directive input, make sure the directive is imported by the
if (browserDetection.isChromeDesktop) {
it('generate a new schema', () => {
let schema = '\n';
extractSchema() !.forEach(
(props, name) => { schema += `'${name}|${props.join(',')}',\n`; });
extractSchema()!.forEach((props, name) => {
schema += `'${name}|${props.join(',')}',\n`;
});
// Uncomment this line to see:
// the generated schema which can then be pasted to the DomElementSchemaRegistry
// console.log(schema);