diff options
| author | Craig Jennings <c@cjennings.net> | 2026-04-26 17:59:59 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-04-26 17:59:59 -0500 |
| commit | 8f3c770e062a9aefec17f6b5f4f0a5ed927ac603 (patch) | |
| tree | bebb641f2046133eb43cc9c167bd5aeb8307ff31 /scripts/coverage-summary.py | |
| parent | 9958ec4c4396ae8435f7e1818ff383c05df47a14 (diff) | |
| download | emacs-wttrin-8f3c770e062a9aefec17f6b5f4f0a5ed927ac603.tar.gz emacs-wttrin-8f3c770e062a9aefec17f6b5f4f0a5ed927ac603.zip | |
test: regression lock for nil :foreground in --make-emoji-icon
When wttrin-mode-line-emoji-font is set and the cache is fresh, --make-emoji-icon was emitting a face plist of the form (:family ... :height 1.0 :foreground nil). Emacs validates faces on every redisplay, so a single fresh-cache state produced hundreds of "Invalid face attribute :foreground nil" warnings in *Messages*.
The new boundary test asserts the face plist omits :foreground entirely when the caller passes nil. The assertion uses plist-member, not plist-get. plist-get returns nil for both a missing key and a present key bound to nil. That's the exact distinction Emacs's redisplay validator cares about.
Diffstat (limited to 'scripts/coverage-summary.py')
0 files changed, 0 insertions, 0 deletions
