spiegel-keyman/core/tests/unit/ldml/invalid-keyboards
Marc Durdin 57f0dc4597 fix(developer): validate id and modifiers attributes in Layr compiler
Per the spec, the `id` attribute is required for touch layers, and
`modifiers` attribute is required for hardware layers. There is
ambiguity in the spec at present as to whether they should be allowed
for the alternative type.

* Validate that the attributes are present where required.
* Tighten validation of `modifiers` attribute - it cannot be empty or
  missing for hardware; "" != "none".
* Hint if the attribute is present when it probably shouldn't be (to be
  potentially raised to warning or error after spec clarified).
* Fixup all keyboard3 xml files to conform to spec and eliminate hints.
* Add unit tests.
* Removed threshold warning for coverage as kmc-ldml is already > 90%.

Fixes: #12423
2026-08-28 13:21:12 +02:00
..
ik_000_null_invalid.txt chore(core): update hextobin files with new format 2022-09-02 14:06:26 +10:00
ik_000_null_invalid.xml fix(core): update ldml test source to handle reset 2024-04-05 14:42:52 -05:00
ik_001_bad_key.txt feat(core): check non-extended keys for bad unicode 2025-03-14 10:04:21 -05:00
ik_001_bad_key.xml fix(developer): validate id and modifiers attributes in Layr compiler 2026-08-28 13:21:12 +02:00
ik_002_no_keys.txt feat(core,docs): improve kmxplus validation 2025-03-14 15:37:23 -05:00
ik_002_no_keys.xml feat(core,docs): improve kmxplus validation 2025-03-14 15:37:23 -05:00
meson.build feat(core,docs): improve kmxplus validation 2025-03-14 15:37:23 -05:00