Unverified Commit 033d1380 authored by Ming Lyu (CareF)'s avatar Ming Lyu (CareF) Committed by GitHub

using named constructor to FrameTiming (#63030)

parent 0aafdf9a
......@@ -134,12 +134,12 @@ void main() {
});
test('Flutter.Frame event fired', () async {
window.onReportTimings(<FrameTiming>[FrameTiming(<int>[
// build start, build finish
10000, 15000,
// raster start, raster finish
16000, 20000,
])]);
window.onReportTimings(<FrameTiming>[FrameTiming.fromTimeStamps(
buildStart: 10000,
buildFinish: 15000,
rasterStart: 16000,
rasterFinish: 20000,
)]);
final List<Map<String, dynamic>> events = scheduler.getEventsDispatched('Flutter.Frame');
expect(events, hasLength(1));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment