Add additional expects to check if LineMetrics flake is a race (#49261)
This commit is contained in:
parent
d68278e3ea
commit
3b1ad168c9
@ -741,6 +741,9 @@ void main() {
|
||||
|
||||
painter.layout(maxWidth: 300);
|
||||
|
||||
expect(painter.text, const TextSpan(text: text));
|
||||
expect(painter.preferredLineHeight, 14);
|
||||
|
||||
final List<ui.LineMetrics> lines = painter.computeLineMetrics();
|
||||
|
||||
expect(lines.length, 4);
|
||||
|
Loading…
x
Reference in New Issue
Block a user