-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Add missing tests for requestFocus routes parameter in Material and Cupertino libraries
#154005
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add missing tests for requestFocus routes parameter in Material and Cupertino libraries
#154005
Conversation
… Cupertino libraries
ff8b6a3 to
a62af67
Compare
justinmc
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
| await tester.pump(); | ||
| await tester.pump(const Duration(milliseconds: 100)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the two pumps?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This advances the route transition animation by updating the frames and then advancing the animation by 100ms.
Another way to achieve this is to use pumpAndSettle. In some reviews, Hixie preferred this style we know how many frames are pushed to get the results.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've discussed that with Hixie as well and I agree with this way over pumpAndSettle 👍 . Thanks for the explanation!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @justinmc. Apologies if i merged it before your reply.
| expect(simpleDialog.insetPadding, isNull); | ||
| }); | ||
|
|
||
| // This is a regression test for https://github.com/flutter/flutter/issues/153983. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you just remember this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added comment for a test added in #154173 when resolving git conflicts.
…rial and Cupertino libraries (flutter/flutter#154005)
…rial and Cupertino libraries (flutter/flutter#154005)
…rial and Cupertino libraries (flutter/flutter#154005)
…rial and Cupertino libraries (flutter/flutter#154005)
…rial and Cupertino libraries (flutter/flutter#154005)
…rial and Cupertino libraries (flutter/flutter#154005)
…rial and Cupertino libraries (flutter/flutter#154005)
…rial and Cupertino libraries (flutter/flutter#154005)
…rial and Cupertino libraries (flutter/flutter#154005)
…rial and Cupertino libraries (flutter/flutter#154005)
…rial and Cupertino libraries (flutter/flutter#154005)
…rial and Cupertino libraries (flutter/flutter#154005)
…rial and Cupertino libraries (flutter/flutter#154005)
…rial and Cupertino libraries (flutter/flutter#154005)
…rial and Cupertino libraries (flutter/flutter#154005)
… Cupertino libraries (flutter#154005) Fixes [Add missing tests for `requestFocus` routes parameter](flutter#153999)
…rial and Cupertino libraries (flutter/flutter#154005)
…rial and Cupertino libraries (flutter/flutter#154005)
…rial and Cupertino libraries (flutter/flutter#154005)
…rial and Cupertino libraries (flutter/flutter#154005)
…rial and Cupertino libraries (flutter/flutter#154005)
…rial and Cupertino libraries (flutter/flutter#154005)
…rial and Cupertino libraries (flutter/flutter#154005)
…rial and Cupertino libraries (flutter/flutter#154005)
…rial and Cupertino libraries (flutter/flutter#154005)
…rial and Cupertino libraries (flutter/flutter#154005)
…rial and Cupertino libraries (flutter/flutter#154005)
…rial and Cupertino libraries (flutter/flutter#154005)
…rial and Cupertino libraries (flutter/flutter#154005)
…rial and Cupertino libraries (flutter/flutter#154005)
…rial and Cupertino libraries (flutter/flutter#154005)
…rial and Cupertino libraries (flutter/flutter#154005)
…rial and Cupertino libraries (flutter/flutter#154005)
…rial and Cupertino libraries (flutter/flutter#154005)
…rial and Cupertino libraries (flutter/flutter#154005)
Fixes Add missing tests for
requestFocusroutes parameterPre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.