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:
@@ -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}"',
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user