Unverified Commit f353c308 authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

remove flaky rects (#21194)

parent 0e9cfe7d
...@@ -159,15 +159,12 @@ void main() { ...@@ -159,15 +159,12 @@ void main() {
final TestSemantics expectedSemantics = new TestSemantics.root( final TestSemantics expectedSemantics = new TestSemantics.root(
children: <TestSemantics>[ children: <TestSemantics>[
new TestSemantics.rootChild( new TestSemantics.rootChild(
rect: new Rect.fromLTRB(0.0, 0.0, 800.0, 600.0),
children: <TestSemantics>[ children: <TestSemantics>[
new TestSemantics( new TestSemantics(
rect: new Rect.fromLTRB(-4.0, -4.0, 88.0, 18.0),
label: 'hello ', label: 'hello ',
textDirection: TextDirection.ltr, textDirection: TextDirection.ltr,
), ),
new TestSemantics( new TestSemantics(
rect: new Rect.fromLTRB(80.0, -4.0, 158.0, 18.0),
label: 'world', label: 'world',
textDirection: TextDirection.ltr, textDirection: TextDirection.ltr,
actions: <SemanticsAction>[ actions: <SemanticsAction>[
...@@ -175,7 +172,6 @@ void main() { ...@@ -175,7 +172,6 @@ void main() {
], ],
), ),
new TestSemantics( new TestSemantics(
rect: new Rect.fromLTRB(150.0, -4.0, 480.0, 18.0),
label: ' this is a cat-astrophe', label: ' this is a cat-astrophe',
textDirection: TextDirection.ltr, textDirection: TextDirection.ltr,
) )
...@@ -183,7 +179,7 @@ void main() { ...@@ -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(); semantics.dispose();
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment