mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-24 17:56:50 -06:00
The language the UI is drawn in was one process-wide value in unit tests too, and the tests run on parallel threads. current_language_is_a_frame_setting sets Traditional Chinese for a moment, and a test that drew text in that moment read it in Chinese. chrome::tests::the_zoom_hint_follows_animated_zoom failed that way in 29 of 500 runs together with the i18n tests. The drawing language is now one per process in the app and one per thread in unit tests, as ui_mirror! keeps the shortcut and workspace mirrors. The app keeps the same static. A new test sets the language on another thread and checks that its own thread still draws in English.