Choices/test/scripts
terminalchai e467bc0de0 refactor(input): replace Intl.Segmenter with DOM-based width measurement
Remove isWideChar() and getStringWidth() entirely. Instead, measure text
width by inserting a hidden <span> that inherits the input element's CSS
classes, setting innerText, and reading clientWidth. Dividing by the span's
own 1ch pixel value converts the measurement back into ch units.

This approach correctly handles CJK, Hangul, fullwidth forms, emoji, and
any font without hard-coded code-point ranges or reliance on Intl.Segmenter.

Remove unit tests for setWidth() that depended on jsdom layout measurement
(jsdom has no layout engine). Width behaviour is verified by e2e tests.

Addresses Xon's review feedback on PR #1384.
2026-03-11 00:26:29 +05:30
..
actions It isn't the 1990s where 1080p monitors were exotic 2024-08-14 19:53:48 +08:00
components refactor(input): replace Intl.Segmenter with DOM-based width measurement 2026-03-11 00:26:29 +05:30
lib It isn't the 1990s where 1080p monitors were exotic 2024-08-14 19:53:48 +08:00
reducers cleanup tests 2024-09-05 12:47:06 +08:00
search Fix search unit tests 2026-01-01 01:43:24 +08:00
store Add searchDisabledChoices configuration option 2025-10-24 14:04:50 -05:00
choices.test.ts Fix searchEnabled being disabled for select-multiple 2026-01-01 07:42:04 +08:00
templates.test.ts Update unit tests 2025-08-16 23:16:19 +08:00