chore: run clang-format on code base.
This fixes several minor indentation issues (instanceof precendence, type declaration specificity, template string length calculation). This should also fix some flip-flop situations with template strings.
This commit is contained in:
@ -69,10 +69,8 @@ export class PerfLogFeatures {
|
||||
gc: boolean;
|
||||
frameCapture: boolean;
|
||||
|
||||
constructor({render = false, gc = false,
|
||||
frameCapture = false}: {render?: boolean,
|
||||
gc?: boolean,
|
||||
frameCapture?: boolean} = {}) {
|
||||
constructor({render = false, gc = false, frameCapture = false}:
|
||||
{render?: boolean, gc?: boolean, frameCapture?: boolean} = {}) {
|
||||
this.render = render;
|
||||
this.gc = gc;
|
||||
this.frameCapture = frameCapture;
|
||||
|
@ -141,8 +141,8 @@ export class ChromeDriverExtension extends WebDriverExtension {
|
||||
}
|
||||
}
|
||||
|
||||
function normalizeEvent(chromeEvent: StringMap<string, any>,
|
||||
data: StringMap<string, any>): StringMap<string, any> {
|
||||
function normalizeEvent(chromeEvent: StringMap<string, any>, data: StringMap<string, any>):
|
||||
StringMap<string, any> {
|
||||
var ph = chromeEvent['ph'];
|
||||
if (StringWrapper.equals(ph, 'S')) {
|
||||
ph = 'b';
|
||||
|
@ -81,8 +81,8 @@ export function main() {
|
||||
createExtension()
|
||||
.timeEnd('name1', 'name2')
|
||||
.then((_) => {
|
||||
expect(log).toEqual(
|
||||
[['executeScript', `console.timeEnd('name1');console.time('name2');`]]);
|
||||
expect(log)
|
||||
.toEqual([['executeScript', `console.timeEnd('name1');console.time('name2');`]]);
|
||||
async.done();
|
||||
});
|
||||
}));
|
||||
|
@ -71,8 +71,8 @@ export function main() {
|
||||
createExtension()
|
||||
.timeEnd('name1', 'name2')
|
||||
.then((_) => {
|
||||
expect(log).toEqual(
|
||||
[['executeScript', `console.timeEnd('name1');console.time('name2');`]]);
|
||||
expect(log)
|
||||
.toEqual([['executeScript', `console.timeEnd('name1');console.time('name2');`]]);
|
||||
async.done();
|
||||
});
|
||||
}));
|
||||
|
Reference in New Issue
Block a user