mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-28 17:30:37 +01:00
Six tests in vectorcraft-text passed or failed on how fast the machine ran them. They now check work counts and handshakes: - Layout speed (1,000 characters, and 10,000 under each composer): laying out twice the text takes at most 2.5 times the steps, and at most 32 steps a character. The steps are the bytes shaped, the clusters the single-line composer reads and the line starts the every-line composer weighs at each break, counted by a test-only counter. - Many one-run paragraphs: the runs the paragraphs look through stay within 4 per paragraph. - A contour-point caret on a huge composite reads no more glyphs than the lookup's budget, and a shape whose readings all fail tries no more readings than the cap. - The font menu's quick list is read on the test thread while the font scan is held. A list that waited for the scan would hold the installed fonts, so the list's content decides the result. The 10 s timeout only releases a call that hangs. Two font folder tests slept 50 ms to get past the file system's clock tick. They now set the folder's modification time with File::set_modified.