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
Make LiveTestWidgetsFlutterBinding work with setSurfaceSize and live tests #86449
Make LiveTestWidgetsFlutterBinding work with setSurfaceSize and live tests #86449
Conversation
Gold has detected about 3 new digest(s) on patchset 1. |
Gold has detected about 6 new digest(s) on patchset 2. |
Gold has detected about 4 new digest(s) on patchset 3. |
Gold has detected about 2 new digest(s) on patchset 4. |
Gold has detected about 4 new digest(s) on patchset 5. |
Gold has detected about 3 new digest(s) on patchset 7. |
Golden file changes have been found for this pull request. Click here to view and triage (e.g. because this is an intentional change). If you are still iterating on this change and are not ready to resolve the images on the Flutter Gold dashboard, consider marking this PR as a draft pull request above. You will still be able to view image results on the dashboard, commenting will be silenced, and the check will not try to resolve itself until marked ready for review. For more guidance, visit Writing a golden file test for Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. Changes reported for pull request #86449 at sha b3a4553bcbf9969b44756019a345717b72900693 |
Fix codelab works Doc and print Fix tests
b3a4553
to
559b13a
Compare
Golden file changes are available for triage from new commit, Click here to view. For more guidance, visit Writing a golden file test for Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
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 so much for debugging this!
Golden file changes are available for triage from new commit, Click here to view. For more guidance, visit Writing a golden file test for Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
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
/// * The _global coordinate space_ is the one used by the device. | ||
/// | ||
/// Positions can be transformed between coordinate spaces with [localToGlobal] | ||
/// and [globalToLocal]. |
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.
Nice 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.
Maybe add a note that global and local coordinate space are usually identically when run in the headless flutter_tester.
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.
Really? I thought they are still 800x600 and 2400x1800 respectively, which still require transforming. Also I worry if that comment suggests people don't need to worry about transforming in normal cases - they always should!
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.
Ok, let's leave the comment as is.
Golden file changes are available for triage from new commit, Click here to view. For more guidance, visit Writing a golden file test for Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
@dkwingsmt please triage images before manually merging PRs. They end up causing errant golden file failures for other PRs. Is it possible that this change causes an inconsistent image? It look like it has been different for each commit following this change, although it could be caused by the untriaged image errors. They appear to be triaged now, so if they continue to vary for every commit there may be something wrong with the test. |
…ceSize and live tests (flutter#86449)" (flutter#86730)" This reverts commit 8802e32.
…ceSize and live tests (flutter#86449)" (flutter#86730)" This reverts commit 8802e32. Fix pointer Trigger Build Change test to gesture detector
This PR fixes several bugs related to live tests, adds more tests, and completes the documentation of several methods related to pointer events. More specifically:
The several tests for
LiveTestWidgetsFlutterBinding
added by #83337 were discovered by #82712 (comment) to fail whensetSurfaceSize
is called. This PR fixed these problems and added asetSurfaceSize
version for these tests.This PR fixes few problems of live tests:
This PR changed the testing widget used in
animation/live_binding_test.dart
. The target widget is now anInkWell
to clearly ensure that thehitTest
occurs at the intended local position.Finally, this PR updated some documentations for some methods, most importantly, whether a pointer event should be in the global coordinate system or the local one.
Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.