@@ -51,9 +51,9 @@ void main() {
5151 // to be part of the word sometimes and not others, which is fine, but we'd mildly prefer if
5252 // we were consistently considering them part of words always.
5353 final TextRange hebrew1 = painter.getWordBoundary (const TextPosition (offset: 4 , affinity: TextAffinity .downstream));
54- expect (hebrew1, const TextRange (start: 0 , end: 8 ), skip: skipExpectsWithKnownBugs);
54+ expect (hebrew1, const TextRange (start: 0 , end: 8 ), skip: skipExpectsWithKnownBugs); // https://github.com/flutter/flutter/issues/87536
5555 final TextRange english2 = painter.getWordBoundary (const TextPosition (offset: 14 , affinity: TextAffinity .downstream));
56- expect (english2, const TextRange (start: 9 , end: 19 ), skip: skipExpectsWithKnownBugs);
56+ expect (english2, const TextRange (start: 9 , end: 19 ), skip: skipExpectsWithKnownBugs); // https://github.com/flutter/flutter/issues/87536
5757 final TextRange hebrew3 = painter.getWordBoundary (const TextPosition (offset: 24 , affinity: TextAffinity .downstream));
5858 expect (hebrew3, const TextRange (start: 20 , end: 28 ));
5959
@@ -163,8 +163,8 @@ void main() {
163163 < TextBox > [], // U+202C, non-printing Unicode bidi formatting character
164164 // The list currently has one extra bogus entry (the last entry, for the
165165 // trailing U+202C PDF, should be empty but is one-pixel-wide instead).
166- ], skip: skipExpectsWithKnownBugs);
167- }, skip: skipTestsWithKnownBugs);
166+ ], skip: skipExpectsWithKnownBugs); // https://github.com/flutter/flutter/issues/87536
167+ }, skip: skipTestsWithKnownBugs); // https://github.com/flutter/flutter/issues/87536
168168
169169 test ('TextPainter - bidi overrides in RTL' , () {
170170 final TextPainter painter = TextPainter ()
@@ -180,9 +180,9 @@ void main() {
180180 painter.layout ();
181181
182182 final TextRange hebrew1 = painter.getWordBoundary (const TextPosition (offset: 4 , affinity: TextAffinity .downstream));
183- expect (hebrew1, const TextRange (start: 0 , end: 8 ), skip: skipExpectsWithKnownBugs);
183+ expect (hebrew1, const TextRange (start: 0 , end: 8 ), skip: skipExpectsWithKnownBugs); // https://github.com/flutter/flutter/issues/87536
184184 final TextRange english2 = painter.getWordBoundary (const TextPosition (offset: 14 , affinity: TextAffinity .downstream));
185- expect (english2, const TextRange (start: 9 , end: 19 ), skip: skipExpectsWithKnownBugs);
185+ expect (english2, const TextRange (start: 9 , end: 19 ), skip: skipExpectsWithKnownBugs); // https://github.com/flutter/flutter/issues/87536
186186 final TextRange hebrew3 = painter.getWordBoundary (const TextPosition (offset: 24 , affinity: TextAffinity .downstream));
187187 expect (hebrew3, const TextRange (start: 20 , end: 28 ));
188188
@@ -253,9 +253,9 @@ void main() {
253253 ],
254254 // Horizontal offsets are currently one pixel off in places; vertical offsets are good.
255255 // The list is currently in the wrong order (so selection boxes will paint in the wrong order).
256- skip: skipExpectsWithKnownBugs,
256+ skip: skipExpectsWithKnownBugs, // https://github.com/flutter/flutter/issues/87536
257257 );
258- }, skip: skipTestsWithKnownBugs);
258+ }, skip: skipTestsWithKnownBugs); // https://github.com/flutter/flutter/issues/87536
259259
260260 test ('TextPainter - forced line-wrapping with bidi' , () {
261261 final TextPainter painter = TextPainter ()
@@ -353,9 +353,10 @@ void main() {
353353 TextBox .fromLTRBD ( 0.0 , 20.0 , 60.0 , 40.0 , TextDirection .ltr),
354354 TextBox .fromLTRBD (60.0 , 28.0 , 110.0 , 38.0 , TextDirection .ltr),
355355 ],
356- skip: skipExpectsWithKnownBugs, // horizontal offsets are one pixel off in places; vertical offsets are good
356+ // horizontal offsets are one pixel off in places; vertical offsets are good
357+ skip: skipExpectsWithKnownBugs, // https://github.com/flutter/flutter/issues/87536
357358 );
358- }, skip: skipTestsWithKnownBugs);
359+ }, skip: skipTestsWithKnownBugs); // https://github.com/flutter/flutter/issues/87536
359360
360361 test ('TextPainter - line wrap mid-word, bidi - LTR base' , () {
361362 final TextPainter painter = TextPainter ()
@@ -386,7 +387,8 @@ void main() {
386387 TextBox .fromLTRBD ( 0.0 , 20.0 , 40.0 , 40.0 , TextDirection .rtl),
387388 TextBox .fromLTRBD (40.0 , 28.0 , 90.0 , 38.0 , TextDirection .ltr),
388389 ],
389- skip: skipExpectsWithKnownBugs, // horizontal offsets are one pixel off in places; vertical offsets are good
390+ // horizontal offsets are one pixel off in places; vertical offsets are good
391+ skip: skipExpectsWithKnownBugs, // https://github.com/flutter/flutter/issues/87536
390392 );
391393
392394 final List <List <TextBox >> list = < List <TextBox >> [
@@ -410,7 +412,7 @@ void main() {
410412 < TextBox > [TextBox .fromLTRBD (70.0 , 28.0 , 80.0 , 38.0 , TextDirection .ltr)],
411413 < TextBox > [TextBox .fromLTRBD (80.0 , 28.0 , 90.0 , 38.0 , TextDirection .ltr)],
412414 ]);
413- }, skip: skipTestsWithKnownBugs);
415+ }, skip: skipTestsWithKnownBugs); // https://github.com/flutter/flutter/issues/87536
414416
415417 test ('TextPainter - line wrap mid-word, bidi - RTL base' , () {
416418 final TextPainter painter = TextPainter ()
@@ -443,9 +445,9 @@ void main() {
443445 ],
444446 // Horizontal offsets are currently one pixel off in places; vertical offsets are good.
445447 // The list is currently in the wrong order (so selection boxes will paint in the wrong order).
446- skip: skipExpectsWithKnownBugs,
448+ skip: skipExpectsWithKnownBugs, // https://github.com/flutter/flutter/issues/87536
447449 );
448- }, skip: skipTestsWithKnownBugs);
450+ }, skip: skipTestsWithKnownBugs); // https://github.com/flutter/flutter/issues/87536
449451
450452 test ('TextPainter - multiple levels' , () {
451453 final TextPainter painter = TextPainter ()
@@ -474,9 +476,9 @@ void main() {
474476 // Horizontal offsets are currently one pixel off in places; vertical offsets are good.
475477 // The list is currently in the wrong order (so selection boxes will paint in the wrong order).
476478 // Also currently there's an extraneous box at the start of the list.
477- skip: skipExpectsWithKnownBugs,
479+ skip: skipExpectsWithKnownBugs, // https://github.com/flutter/flutter/issues/87536
478480 );
479- }, skip: skipTestsWithKnownBugs);
481+ }, skip: skipTestsWithKnownBugs); // https://github.com/flutter/flutter/issues/87536
480482
481483 test ('TextPainter - getPositionForOffset - RTL in LTR' , () {
482484 final TextPainter painter = TextPainter ()
@@ -518,7 +520,8 @@ void main() {
518520 // ^
519521 painter.getPositionForOffset (const Offset (12.0 , 5.0 )).toString (),
520522 const TextPosition (offset: 1 , affinity: TextAffinity .downstream).toString (),
521- skip: skipExpectsWithKnownBugs, // currently we say upstream instead of downstream
523+ // currently we say upstream instead of downstream
524+ skip: skipExpectsWithKnownBugs, // https://github.com/flutter/flutter/issues/87536
522525 );
523526 expect (
524527 // Aaa Bbb Ccc Gimel Bet Alef Ddd Eee Fff
@@ -558,7 +561,7 @@ void main() {
558561 painter.getPositionForOffset (const Offset (100.0 , 5.0 )).toString (),
559562 const TextPosition (offset: 9 , affinity: TextAffinity .upstream).toString (),
560563 );
561- }, skip: skipTestsWithKnownBugs);
564+ }, skip: skipTestsWithKnownBugs); // https://github.com/flutter/flutter/issues/87536
562565
563566 test ('TextPainter - getPositionForOffset - LTR in RTL' , () {
564567 final TextPainter painter = TextPainter ()
@@ -603,7 +606,7 @@ void main() {
603606 painter.getPositionForOffset (const Offset (62.0 , 5.0 )).toString (),
604607 const TextPosition (offset: 3 , affinity: TextAffinity .upstream).toString (),
605608 );
606- }, skip: skipTestsWithKnownBugs);
609+ }, skip: skipTestsWithKnownBugs); // https://github.com/flutter/flutter/issues/87536
607610
608611 test ('TextPainter - Spaces' , () {
609612 final TextPainter painter = TextPainter ()
@@ -651,7 +654,7 @@ void main() {
651654
652655 expect (painter.width, 410.0 );
653656 expect (painter.height, 200.0 );
654- expect (painter.computeDistanceToActualBaseline (TextBaseline .alphabetic), 160.0 );
657+ expect (painter.computeDistanceToActualBaseline (TextBaseline .alphabetic), moreOrLessEquals ( 160.0 , epsilon : 0.001 ) );
655658 expect (painter.preferredLineHeight, 100.0 );
656659
657660 expect (
@@ -662,9 +665,9 @@ void main() {
662665 TextBox .fromLTRBD (110.0 , 0.0 , 310.0 , 200.0 , TextDirection .ltr),
663666 ],
664667 // Horizontal offsets are currently one pixel off in places; vertical offsets are good.
665- skip: skipExpectsWithKnownBugs,
668+ skip: skipExpectsWithKnownBugs, // https://github.com/flutter/flutter/issues/87536
666669 );
667- }, skip: skipTestsWithKnownBugs);
670+ }, skip: skipTestsWithKnownBugs); // https://github.com/flutter/flutter/issues/87536
668671
669672 test ('TextPainter - empty text baseline' , () {
670673 final TextPainter painter = TextPainter ()
@@ -674,14 +677,9 @@ void main() {
674677 style: TextStyle (fontFamily: 'Ahem' , fontSize: 100.0 , height: 1.0 ),
675678 );
676679 painter.layout ();
677- expect (
678- // Returns -1
679- painter.computeDistanceToActualBaseline (TextBaseline .alphabetic), 80.0 ,
680- skip: skipExpectsWithKnownBugs,
681- );
682- }, skip: skipTestsWithKnownBugs);
680+ expect (painter.computeDistanceToActualBaseline (TextBaseline .alphabetic), moreOrLessEquals (80.0 , epsilon: 0.001 ));
681+ });
683682}
684683
685-
686684String lro (String s) => '${Unicode .LRO }L${s }L${Unicode .PDF }' ;
687685String rlo (String s) => '${Unicode .RLO }R${s }R${Unicode .PDF }' ;
0 commit comments