Files
skylartaylor 01c171443f test(ui): compare zoom window test waits for its pane, in a small window at 30 %
compare_zoom_window_tracks_the_zoomed_pane set 100 % zoom on two 6000x4000
demo photos in a 1400x900 window, so each pane's zoom window was cut from the
photo's full 24 MP of procedural pixels, then settled the whole library
without checking the result. On an instrumented or loaded runner that took
over ten minutes, and the test failed later at "window texture".

What it checks does not depend on the zoom or the window size: a zoom
window's tile is laid over the frame recorded for the pane, not over the rect
the whole-frame texture is fitted into. Any zoom that produces a real window
exercises that. A pane's whole-frame render follows the drawn size up to four
times the pane (and 2560 px), and a window is wanted once the drawn frame is
1.25 times that. So the test now uses its own 900x600 window, where that is
first true at 30 %: the window is cut from an 1800 px frame (2.2 MP), at a
non-zero offset in the frame. The test still asserts that the window exists
and that the frame and texture rects differ by more than 3 px.

It now waits, asserted and with the pending renders in the message, for
exactly what it reads next: the candidate pane's window, and its window and
whole-frame textures rendered for the current request. Thumbnails elsewhere
may still be rendering. Every later assertion is unchanged.
2026-11-24 01:11:23 +01:00
..
2026-10-31 02:22:11 +00:00