some spaces formatting (#29452)

* some space formattings

* always use blocks in if-else if a block is used

* format spaces in for and while

* allow multiline if conditions

* fix missing space
This commit is contained in:
Alexandre Ardhuin
2019-03-20 23:23:31 +01:00
committed by GitHub
parent 4418ec467b
commit a6af422874
67 changed files with 243 additions and 248 deletions

View File

@@ -221,7 +221,7 @@ void main() {
];
test('computes 90th frame rasterizer time in milliseconds', () {
for(int i = 0; i < sequences.length; ++i) {
for (int i = 0; i < sequences.length; ++i) {
expect(
summarize(rasterizeTimeSequenceInMillis(sequences[i])).computePercentileFrameRasterizerTimeMillis(90.0),
p90s[i],
@@ -231,7 +231,7 @@ void main() {
test('compute 99th frame rasterizer time in milliseconds', () {
final List<int> sequence = <int>[];
for(int i = 1; i <= 100; ++i) {
for (int i = 1; i <= 100; ++i) {
sequence.add(i);
}
expect(

View File

@@ -42,7 +42,7 @@ void main() {
expect(e1.threadDuration, const Duration(microseconds: 245));
expect(e1.timestampMicros, 456);
expect(e1.threadTimestampMicros, 567);
expect(e1.arguments, <String, dynamic>{ 'arg1': true });
expect(e1.arguments, <String, dynamic>{'arg1': true});
final TimelineEvent e2 = timeline.events[1];
expect(e2.name, isNull);