using named constructor to FrameTiming (#63030)
This commit is contained in:
parent
0aafdf9aa9
commit
033d138078
@ -134,12 +134,12 @@ void main() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test('Flutter.Frame event fired', () async {
|
test('Flutter.Frame event fired', () async {
|
||||||
window.onReportTimings(<FrameTiming>[FrameTiming(<int>[
|
window.onReportTimings(<FrameTiming>[FrameTiming.fromTimeStamps(
|
||||||
// build start, build finish
|
buildStart: 10000,
|
||||||
10000, 15000,
|
buildFinish: 15000,
|
||||||
// raster start, raster finish
|
rasterStart: 16000,
|
||||||
16000, 20000,
|
rasterFinish: 20000,
|
||||||
])]);
|
)]);
|
||||||
|
|
||||||
final List<Map<String, dynamic>> events = scheduler.getEventsDispatched('Flutter.Frame');
|
final List<Map<String, dynamic>> events = scheduler.getEventsDispatched('Flutter.Frame');
|
||||||
expect(events, hasLength(1));
|
expect(events, hasLength(1));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user