From f353c308a11a91bae133b4edf673910020693de8 Mon Sep 17 00:00:00 2001 From: Jonah Williams Date: Wed, 29 Aug 2018 17:21:08 -0700 Subject: [PATCH] remove flaky rects (#21194) --- packages/flutter/test/widgets/text_test.dart | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/flutter/test/widgets/text_test.dart b/packages/flutter/test/widgets/text_test.dart index 8392e04e2f..50c6233fdc 100644 --- a/packages/flutter/test/widgets/text_test.dart +++ b/packages/flutter/test/widgets/text_test.dart @@ -159,15 +159,12 @@ void main() { final TestSemantics expectedSemantics = new TestSemantics.root( children: [ new TestSemantics.rootChild( - rect: new Rect.fromLTRB(0.0, 0.0, 800.0, 600.0), children: [ new TestSemantics( - rect: new Rect.fromLTRB(-4.0, -4.0, 88.0, 18.0), label: 'hello ', textDirection: TextDirection.ltr, ), new TestSemantics( - rect: new Rect.fromLTRB(80.0, -4.0, 158.0, 18.0), label: 'world', textDirection: TextDirection.ltr, actions: [ @@ -175,7 +172,6 @@ void main() { ], ), new TestSemantics( - rect: new Rect.fromLTRB(150.0, -4.0, 480.0, 18.0), label: ' this is a cat-astrophe', textDirection: TextDirection.ltr, ) @@ -183,7 +179,7 @@ void main() { ), ], ); - expect(semantics, hasSemantics(expectedSemantics, ignoreTransform: true, ignoreId: true)); + expect(semantics, hasSemantics(expectedSemantics, ignoreTransform: true, ignoreId: true, ignoreRect: true)); semantics.dispose(); });