Add missing baseline check in text layout tests (flutter/engine#51444)

This PR adds a check for the `baseline` value in text layout service tests that appears to be missing.

Test-exempt: increasing test coverage only.
This commit is contained in:
Tomasz Gucio
2024-03-15 18:39:06 +01:00
committed by GitHub
parent d432c7ce04
commit 1767a8c6d6

View File

@@ -107,6 +107,13 @@ void expectLines(CanvasParagraph paragraph, List<TestLine> expectedLines) {
'line #$i had a different `left` value: "${line.left}" vs. "${expectedLine.left}"',
);
}
if (expectedLine.baseline != null) {
expect(
line.baseline,
expectedLine.baseline,
reason: 'line #$i had a different `baseline` value: "${line.baseline}" vs. "${expectedLine.baseline}"',
);
}
}
}