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
Change async_test to promise_test in clear-window-name.https.html #25572
Conversation
There's a slight performance hit here by not running them concurrently (now takes ~2.5s on Chrome and Firefox on CI, versus 1 and 1.8s before). If we care about that, we can make these properly Weirdly, there's a diff in Safari that I haven't figured out yet - https://wpt.fyi/results/html/browsers/windows/clear-window-name.https.html?diff&filter=ADC&run_id=688120008&run_id=669410010 . This test may be flaky on Safari (it was just added, and doesn't have enough wpt.fyi runs to figure that out), or I may have inadvertently triggered some sort of behavior change. Perhaps you can try running it locally @foolip to see if you can reproduce with/without? |
Sorry for missing this in review. This looks reasonable to me. @artines1 might have thoughts as the original author. |
No worries, I assigned to foolip anyway ;) I'll gives artines1 24 hours to see if they have any comments, then I'll merge this. |
The patch looks good to me. I don't have any comments. Thanks. |
@stephenmcgruer I've tried running |
@foolip then it seems like I have introduced a behavior change (probably by making it non-concurrent), but unclear to me what. If you're able to do any debugging that would be great, there may be a Safari bug hiding here? (Something about simultaneous windows being opened...?) |
@stephenmcgruer when running the tests with your change, it all happens very fast. Windows open and close very fast and then the test is done. Before, one window was just left sitting open. I've not been able to get to the bottom of it, but it looks like what matters is what happens after the hanging test. By removing all the prior tests (leaving just the last two) and leaving just the call to I'd need to spend more time minifying this, more time than I have today. |
These all appear to be straight-forward promise tests, not async tests. See #21435
bacfecb
to
8bb0fbb
Compare
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.
Almost LGTM. Approving so you can merge after fixing nits.
@foolip - we still have the surprising improvement in Safari that I don't understand here. Are you still happy to merge this? |
Safari reuses the top-level window when you use |
Ack, thanks! |
Ah, thanks for explaining what's going on @annevk! |
These all appear to be straight-forward promise tests, not async tests.
See #21435