Repository navigation
test(layout): the wrapped map title test picks its names in the installed fonts (#3043) - #3045
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Code reviewPR #3045 changes one file, BugsNone found. I checked the candidate search for correctness: SecurityNone. The change adds no input handling outside the test. Performance
Quality
AGENTS.mdNo breaks found. The test has no timer waits and no ignored tests. Its assertions are not tautologies. The lines I checked fit the 140-column Prior reviewsNo earlier review threads on this PR, so none were left alone. Change sizeCompared with main, merge base 5d49160 to PR head 8b579b4.
|
|
On the other review points:
|
📖 Docs preview
GitHub Pages takes a minute or two to publish a new commit. Newer commits from the fork aren't published until a maintainer adds the |
Code reviewScope: one file, Bugs: none found. The types, borrows and helper signatures line up as far as I can check by reading. The LCG in Security: none. The change is test code only. Performance:
Quality:
AGENTS.md:
Change sizeCompared with
|
Code reviewScope: one test file, Bugs
Security
Performance
Quality
AGENTS.md
Not verified
Earlier concerns left aloneI left 3 earlier concerns alone, because the author answered them and no new evidence was posted: the Change sizeCompared with the base branch: the whole PR against main (merge base 5d49160 to PR head 1c02803).
|
|
On the screening order (the inline suggestion it mentions isn't on the PR): leaving it as it is. It saves test time only, and the PR is approved with its platform runs under way, which a push would restart. |
…itle-fonts # Conflicts: # crates/engine/src/tests/layout_title.rs
Code reviewI found no bugs, security problems, or AGENTS.md breaks in this test-only change. One quality point is posted inline. I checked the test's sheet measure against the product sizing in Bugs: none found. Security: none found. Performance: no new concerns. The 20,000-candidate search cost was raised on earlier threads and I left it alone (see below). Quality:
AGENTS.md: no breaks found. The test has no timer waits, its Twins: not applicable. The change is test-only and touches no format reader, overlay tool, add/open command, or wasm branch. Earlier concerns: I left 3 alone because they were already raised and answered: the Change sizeCompared: the whole PR against main (merge base bd73d65 to PR head 8f0a4b5).
|
Summary
a_wrapped_map_title_is_sized_for_its_drawn_lines(from #2972) still fails onmainon Fedora with Noto Sans. Its four map names were picked to sit at the wrap boundary in the fonts of the Ubuntu runner; in other fonts theclassicname fits on one line. #3046 fixed macOS and Windows by skipping a style whose title doesn't wrap there, but on Linux every title must still wrap, so other Linux fonts keep failing.The test now checks each style's box against the drawn lines twice: on a long name, and on a name found on the machine it runs on, from a fixed sequence made from a fixed word list, whose title wraps and which the sheet's line breaking counts differently from the drawn lines. Not every font has such a name for every style (
banneron macOS has none in the 20,000 tried), so the test requires one in at least one style and panics otherwise: it never passes without having told the two line breakings apart. This replaces the per-platform skip from #3046: every style is checked on every platform. Test only; no product code changes.Testing
On Fedora with Noto Sans:
mainwith test(layout): a wrapped map title is checked where its names wrap #3046 in it (c2bf412f);report::wrap_withincmd/layout.rs), it fails onclassic(3 lines sized, 2 drawn);banner,panelandeditorialfail;fmt,clippy -D warningsonrustgis-engineand the 13layout_titletests pass.Pull requests run these tests on Ubuntu only, so this one is labelled
ci:windowsandci:macos.UI evidence
No visible UI change.
Related issue
Closes #3043
Summary by CodeRabbit