@@ -48,7 +48,7 @@ void main() {
4848
4949 final TextPosition positionBelow = paragraph.getPositionForOffset (const Offset (5.0 , 20.0 ));
5050 expect (positionBelow.offset, greaterThan (position40.offset));
51- });
51+ }, skip : isBrowser );
5252
5353 test ('getBoxesForSelection control test' , () {
5454 final RenderParagraph paragraph = RenderParagraph (
@@ -71,7 +71,7 @@ void main() {
7171 expect (boxes.any ((ui.TextBox box) => box.right == 100 && box.top == 10 ), isTrue);
7272 },
7373 // Ahem-based tests don't yet quite work on Windows or some MacOS environments
74- skip: isLinux);
74+ skip: isLinux || isBrowser );
7575
7676 test ('getWordBoundary control test' , () {
7777 final RenderParagraph paragraph = RenderParagraph (
@@ -88,7 +88,7 @@ void main() {
8888
8989 final TextRange range85 = paragraph.getWordBoundary (const TextPosition (offset: 75 ));
9090 expect (range85.textInside (_kText), equals ('Queen\' s' ));
91- });
91+ }, skip : isBrowser );
9292
9393 test ('overflow test' , () {
9494 final RenderParagraph paragraph = RenderParagraph (
@@ -164,7 +164,7 @@ void main() {
164164
165165 relayoutWith (maxLines: 100 , softWrap: true , overflow: TextOverflow .fade);
166166 expect (paragraph.debugHasOverflowShader, isFalse);
167- });
167+ }, skip : isBrowser );
168168
169169 test ('maxLines' , () {
170170 final RenderParagraph paragraph = RenderParagraph (
@@ -193,7 +193,7 @@ void main() {
193193
194194 layoutAt (3 );
195195 expect (paragraph.size.height, 30.0 );
196- }, skip: isWindows); // Ahem-based tests don't yet quite work on Windows
196+ }, skip: isWindows || isBrowser ); // Ahem-based tests don't yet quite work on Windows
197197
198198 test ('changing color does not do layout' , () {
199199 final RenderParagraph paragraph = RenderParagraph (
@@ -280,7 +280,7 @@ void main() {
280280 expect (boxes[2 ].toRect ().height, closeTo (26.0 , 0.0001 ));
281281 expect (boxes[3 ].toRect ().width, anyOf (14.0 , 13.0 ));
282282 expect (boxes[3 ].toRect ().height, closeTo (13.0 , 0.0001 ));
283- });
283+ }, skip : isBrowser );
284284
285285 test ('toStringDeep' , () {
286286 final RenderParagraph paragraph = RenderParagraph (
@@ -361,7 +361,7 @@ void main() {
361361 expect (boxes[3 ], const TextBox .fromLTRBD (38.0 , 4.0 , 48.0 , 14.0 , TextDirection .ltr));
362362 expect (boxes[4 ], const TextBox .fromLTRBD (48.0 , 0.0 , 62.0 , 14.0 , TextDirection .ltr));
363363 // Ahem-based tests don't yet quite work on Windows or some MacOS environments
364- }, skip: isWindows || isMacOS);
364+ }, skip: isWindows || isMacOS || isBrowser );
365365
366366 test ('inline widgets multiline test' , () {
367367 const TextSpan text = TextSpan (
@@ -413,5 +413,5 @@ void main() {
413413 expect (boxes[7 ], const TextBox .fromLTRBD (0.0 , 28.0 , 14.0 , 42.0 , TextDirection .ltr));
414414 expect (boxes[8 ], const TextBox .fromLTRBD (14.0 , 28.0 , 28.0 , 42.0 , TextDirection .ltr));
415415 // Ahem-based tests don't yet quite work on Windows or some MacOS environments
416- }, skip: isWindows || isMacOS);
416+ }, skip: isWindows || isMacOS || isBrowser );
417417}
0 commit comments