Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
c44424b6
Unverified
Commit
c44424b6
authored
Dec 10, 2021
by
Ian Hickson
Committed by
GitHub
Dec 10, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes semantics_perf_test.dart after profile fixes (#95047)
I renamed the semantics events label.
parent
53f99b72
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
semantics_perf_test.dart
...marks/complex_layout/test_driver/semantics_perf_test.dart
+2
-2
No files found.
dev/benchmarks/complex_layout/test_driver/semantics_perf_test.dart
View file @
c44424b6
...
...
@@ -33,9 +33,9 @@ void main() {
expect
(
await
driver
.
setSemantics
(
true
),
isTrue
);
});
final
Iterable
<
TimelineEvent
>?
semanticsEvents
=
timeline
.
events
?.
where
((
TimelineEvent
event
)
=>
event
.
name
==
'S
emantics
'
);
final
Iterable
<
TimelineEvent
>?
semanticsEvents
=
timeline
.
events
?.
where
((
TimelineEvent
event
)
=>
event
.
name
==
'S
EMANTICS
'
);
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
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment