add missing trailing commas in list/set/map literals (#102585)

This commit is contained in:
Alexandre Ardhuin
2022-04-27 09:15:35 +02:00
committed by GitHub
parent 0b80f08cf0
commit 07f1c20474
271 changed files with 1236 additions and 1141 deletions

View File

@@ -65,7 +65,7 @@ abstract class SerializableWaitCondition {
/// Serializes the object to JSON.
Map<String, String> serialize() {
return <String, String>{
'conditionName': conditionName
'conditionName': conditionName,
};
}

View File

@@ -1154,9 +1154,8 @@ void main() {
height: 0,
width: 0,
child: Text('World!', key: Key('widgetTwo')),
)
],
),
),
]),
),
);

View File

@@ -108,7 +108,7 @@ void main() {
await driver.waitFor(find.byTooltip('foo'), timeout: _kTestTimeout);
expect(log, <String>[
'VMServiceFlutterDriver: >>> {command: waitFor, timeout: $_kSerializedTestTimeout, finderType: ByTooltipMessage, text: foo}',
'VMServiceFlutterDriver: <<< {isError: false, response: {status: ok}}'
'VMServiceFlutterDriver: <<< {isError: false, response: {status: ok}}',
]);
});
@@ -587,7 +587,7 @@ void main() {
'setVMTimelineFlags [Dart, GC, Compiler]',
'getFlagList',
'setVMTimelineFlags []',
'getVMTimeline null null'
'getVMTimeline null null',
]);
expect(timeline.events!.single.name, 'test event');
@@ -679,7 +679,7 @@ void main() {
expect(fakeClient.commandLog, <String>[
'ext.flutter.driver {command: set_frame_sync, enabled: false}',
'ext.flutter.driver {command: waitFor, timeout: $_kSerializedTestTimeout, finderType: ByTooltipMessage, text: foo}',
'ext.flutter.driver {command: set_frame_sync, enabled: true}'
'ext.flutter.driver {command: set_frame_sync, enabled: true}',
]);
});
});

View File

@@ -53,8 +53,8 @@ void main() {
'ph': 'b',
'ts': timeStamp,
'args': <String, String>{
'vsync_transitions_missed': vsyncsMissed.toString()
}
'vsync_transitions_missed': vsyncsMissed.toString(),
},
};
Map<String, dynamic> lagEnd(int timeStamp, int vsyncsMissed) => <String, dynamic>{
@@ -62,8 +62,8 @@ void main() {
'ph': 'e',
'ts': timeStamp,
'args': <String, String>{
'vsync_transitions_missed': vsyncsMissed.toString()
}
'vsync_transitions_missed': vsyncsMissed.toString(),
},
};
Map<String, dynamic> cpuUsage(int timeStamp, double cpuUsage) => <String, dynamic>{
@@ -71,8 +71,8 @@ void main() {
'name': 'CpuUsage',
'ts': timeStamp,
'args': <String, String>{
'total_cpu_usage': cpuUsage.toString()
}
'total_cpu_usage': cpuUsage.toString(),
},
};
Map<String, dynamic> memoryUsage(int timeStamp, double dirty, double shared) => <String, dynamic>{
@@ -82,7 +82,7 @@ void main() {
'args': <String, String>{
'owned_shared_memory_usage': shared.toString(),
'dirty_memory_usage': dirty.toString(),
}
},
};
Map<String, dynamic> platformVsync(int timeStamp) => <String, dynamic>{
@@ -98,7 +98,7 @@ void main() {
'args': <String, dynamic>{
'StartTime': startTime,
'TargetTime': endTime,
}
},
};
List<Map<String, dynamic>> _genGC(String name, int count, int startTime, int timeDiff) {

View File

@@ -135,7 +135,7 @@ void main() {
const CombinedCondition combinedCondition =
CombinedCondition(<SerializableWaitCondition>[
NoTransientCallbacks(),
NoPendingFrame()
NoPendingFrame(),
]);
expect(combinedCondition.serialize(), <String, String>{