mirror of
https://github.com/storytold/lightcraft.git
synced 2026-12-04 16:01:16 -05:00
01c171443f
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.