mirror of
https://github.com/flutter/flutter
synced 2024-09-13 13:21:36 +00:00
Fixes semantics_perf_test.dart after profile fixes (#95047)
I renamed the semantics events label.
This commit is contained in:
parent
53f99b72d7
commit
c44424b67d
|
@ -33,9 +33,9 @@ void main() {
|
|||
expect(await driver.setSemantics(true), isTrue);
|
||||
});
|
||||
|
||||
final Iterable<TimelineEvent>? semanticsEvents = timeline.events?.where((TimelineEvent event) => event.name == 'Semantics');
|
||||
final Iterable<TimelineEvent>? semanticsEvents = timeline.events?.where((TimelineEvent event) => event.name == 'SEMANTICS');
|
||||
if (semanticsEvents?.length != 2)
|
||||
fail('Expected exactly two semantics events, got ${semanticsEvents?.length}');
|
||||
fail('Expected exactly two "SEMANTICS" events, got ${semanticsEvents?.length}:\n$semanticsEvents');
|
||||
final Duration semanticsTreeCreation = Duration(microseconds: semanticsEvents!.last.timestampMicros! - semanticsEvents.first.timestampMicros!);
|
||||
|
||||
final String jsonEncoded = json.encode(<String, dynamic>{'initialSemanticsTreeCreation': semanticsTreeCreation.inMilliseconds});
|
||||
|
|
Loading…
Reference in a new issue