Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
6 changes: 3 additions & 3 deletions lib/web_ui/test/canvaskit/canvaskit_api_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1596,7 +1596,7 @@ void _paragraphTests() {
..weight = canvasKit.FontWeight.Bold)
..fontSize = 72
..heightMultiplier = 1.5
..halfLeading = false
..halfLeading = true
..leading = 0
..strutEnabled = true
..forceStrutHeight = false;
Expand Down Expand Up @@ -1673,7 +1673,7 @@ void _paragraphTests() {
expect(actual, within<double>(distance: actual / 100, from: expected));
}

expectAlmost(paragraph.getAlphabeticBaseline(), 85.5);
expectAlmost(paragraph.getAlphabeticBaseline(), 78.6);
expect(paragraph.didExceedMaxLines(), isFalse);
expectAlmost(paragraph.getHeight(), 108);
expectAlmost(paragraph.getIdeographicBaseline(), 108);
Expand All @@ -1699,7 +1699,7 @@ void _paragraphTests() {
expectAlmost(lineMetrics.ascent, 55.6);
expectAlmost(lineMetrics.descent, 14.8);
expect(lineMetrics.isHardBreak, isTrue);
expectAlmost(lineMetrics.baseline, 85.5);
expectAlmost(lineMetrics.baseline, 78.6);
expectAlmost(lineMetrics.height, 108);
expectAlmost(lineMetrics.left, 2.5);
expectAlmost(lineMetrics.width, 263);
Expand Down