-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Adding a few setTimeouts to the utility function #25161
base: master
Are you sure you want to change the base?
Conversation
…s just a little of when these tests are automated
So knowing nothing about how the tests work, if the goal is to wait for the callback from the IntersectionObserver before checking things, would a promise-based test be useful? E.g. something like:
But perhaps there is some complexity in needing to wait for multiple calls to the Generally speaking, adding timeouts like this is only going to make a test flaky (particularly since they seem quite arbitrary in this diff). Hopefully @szager-chromium can chime in, however, as someone who knows IntersectionObserver wayyyyyy better than me :) |
Thanks for the comment @stephenmcgruer I pushed new changes to make it simpler before I read your comment, don't want you to think I was ignoring you. I'll look forward to hearing from @szager-chromium as well. For these tests I think the complexity is in the requestAnimationFrame, but I don't know exactly how these work either. |
Would it be possible to merge this and discuss the possibility of a re-write to promises with the Working Group? I don't like that wpt.fyi shows inaccurate test results for this. I'm sure there are probably other places as well that I am going to start looking into. I just remembered about the 2way sync that was enabled some time ago with chromium. If it makes more sense, I could make this change in the chromium repo. |
I made a comment on the bug -- tl;dr I am pretty strongly against landing this change. |
The timing in these tests is just a little of when these tests are automated. This is meant to address: #25023