Add additional expects to check if LineMetrics flake is a race (#49261)

This commit is contained in:
Gary Qian
2020-01-22 13:00:22 -08:00
committed by GitHub
parent d68278e3ea
commit 3b1ad168c9

View File

@@ -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);