Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 996c681

Browse files
committed
Fix fontSize in test
1 parent 4dd299d commit 996c681

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lib/web_ui/test/text/canvas_paragraph_builder_test.dart

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -460,9 +460,8 @@ Future<void> testMain() async {
460460
// Set dir attribute for RTL fragments in order to let the browser
461461
// handle mirrored characters.
462462
test('Sets "dir" attribute for RTL fragment', () {
463-
const double fontSize = 20.0;
464463
final EngineParagraphStyle style = EngineParagraphStyle(
465-
fontSize: fontSize,
464+
fontSize: 20.0,
466465
textDirection: TextDirection.rtl,
467466
);
468467
final CanvasParagraphBuilder builder = CanvasParagraphBuilder(style);
@@ -477,13 +476,13 @@ Future<void> testMain() async {
477476
expectOuterHtml(
478477
paragraph,
479478
'<flt-paragraph style="${paragraphStyle()}">'
480-
'<flt-span dir="rtl" style="${spanStyle(top: null, left: null, width: null, fontSize: fontSize)}">'
479+
'<flt-span dir="rtl" style="${spanStyle(top: null, left: null, width: null, fontSize: 20)}">'
481480
'('
482481
'</flt-span>'
483-
'<flt-span style="${spanStyle(top: null, left: null, width: null, fontSize: fontSize)}">'
482+
'<flt-span style="${spanStyle(top: null, left: null, width: null, fontSize: 20)}">'
484483
'1'
485484
'</flt-span>'
486-
'<flt-span dir="rtl" style="${spanStyle(top: null, left: null, width: null, fontSize: fontSize)}">'
485+
'<flt-span dir="rtl" style="${spanStyle(top: null, left: null, width: null, fontSize: 20)}">'
487486
')'
488487
'</flt-span>'
489488
'</flt-paragraph>',

0 commit comments

Comments
 (0)