@@ -460,9 +460,8 @@ Future<void> testMain() async {
460
460
// Set dir attribute for RTL fragments in order to let the browser
461
461
// handle mirrored characters.
462
462
test ('Sets "dir" attribute for RTL fragment' , () {
463
- const double fontSize = 20.0 ;
464
463
final EngineParagraphStyle style = EngineParagraphStyle (
465
- fontSize: fontSize ,
464
+ fontSize: 20.0 ,
466
465
textDirection: TextDirection .rtl,
467
466
);
468
467
final CanvasParagraphBuilder builder = CanvasParagraphBuilder (style);
@@ -477,13 +476,13 @@ Future<void> testMain() async {
477
476
expectOuterHtml (
478
477
paragraph,
479
478
'<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 )}">'
481
480
'('
482
481
'</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 )}">'
484
483
'1'
485
484
'</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 )}">'
487
486
')'
488
487
'</flt-span>'
489
488
'</flt-paragraph>' ,
0 commit comments