mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-21 09:26:43 +00:00
* #3763: test that automation refuses edit.installedProfiles edit.installedProfiles scans the OS and user ICC folders but takes no path parameter, so the automation policy let it through until it was listed as an ambient-path command. The test checks every authorize entry point and the sandboxed Headless session refuse it; without the policy line the first assertion fails (authorize_engine_command allowed it). * #4134: test that Liquify undo/redo and brush keys work with a numeric field focused Ctrl+Z was ignored in Liquify while a slider's text edit had focus, and the bracket keys could not step a 2 px brush down to 1 px. The tests focus a real text edit and press Cmd+Z / Cmd+Shift+Z and the bracket keys. Without the fix Cmd+Z leaves the stroke in place and '[' gives 1.8 instead of 1.0. * #119: test that Layers panel thumbnails are released with their layer or document Thumbnail textures of deleted layers and closed documents were kept for the session. The test deletes a layer and then closes the document and checks the thumbnail cache. Without prune_thumbs the deleted layer's thumbnail is still cached. * #2241: test that Quick Mask and Screen Mode follow the two-column toolbar The two buttons stayed stacked when the toolbar was widened to two columns. The test checks they are stacked in one column and share a row once the header chevron switches to two columns, in three themes. Without the layout the second assertion fails (the buttons sit on different rows). * #3425: test that the options bar draws a single full-width border The options bar drew its own top and bottom separator on top of the panel's border, doubling the lines. The test renders the bar in three themes and counts full-width separator-coloured horizontal lines. Without the fix there are three. * #4139: test that the Free Transform rotate zone draws the turn arrow The rotate zone hides the OS pointer, so the canvas must draw the curved arrow itself where the box has no preview overlay. The test hovers just outside a corner of a box without a preview and checks the pointer is hidden and the arrow arc is painted. Without the canvas draw call no arrow is painted. * #4630: test that the scrollbar thumb stays visible under the pointer The stock thin scroll bar fades its handle to the track's opacity while the pointer is on it, so the thumb vanished. The test checks every theme's floating scroll style keeps the handle opaque and more opaque than the track. Without the override both are 0.6. * #2209: test that Make/Reset Default buttons wrap with long labels In languages with long labels (Russian) the two buttons overflowed the page column in a non-wrapping row. The test draws the page in Russian and checks the second button wraps to its own right-aligned row. Without main-axis wrap both sit on one row and run left over the effect list. * #3425: require exactly one options-bar border The test allowed zero borders, so it would pass if the options bar lost its border altogether. It now requires exactly one, the panel's, in every theme; with the options bar's own separators restored it still fails (three lines).