Skip to content

Commit 05b5873

Browse files
committed
Pin the exact hyphen widths in the web test
With the FlutterTest font the widths are exact, so check them like the TextPainter test does.
1 parent 34b53e0 commit 05b5873

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎engine/src/flutter/lib/web_ui/test/ui/paragraph_builder_test.dart‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ Future<void> testMain() async {
132132

133133
expect(manual.numberOfLines, 2);
134134
expect(hidden.numberOfLines, 2);
135-
expect(manual.longestLine, greaterThan(hidden.longestLine));
135+
expect(manual.longestLine, 50);
136+
expect(hidden.longestLine, 40);
136137
});
137138

138139
test('unspecified behaves like manual', () {

0 commit comments

Comments
 (0)