mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-23 08:07:40 +00:00
parent
92a4a2a0a2
commit
ad64bdf163
2 changed files with 24 additions and 0 deletions
20
developer/src/kmc-ldml/test/fixtures/sections/vars/fail-badref-7.xml
vendored
Normal file
20
developer/src/kmc-ldml/test/fixtures/sections/vars/fail-badref-7.xml
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<keyboard3 xmlns="https://schemas.unicode.org/cldr/45/keyboard3" locale="mt" conformsTo="45">
|
||||
<info name="vars-fail" />
|
||||
|
||||
<keys />
|
||||
|
||||
<variables>
|
||||
<string id="markcaret" value="✔🥕" />
|
||||
<set id="vowel" value="a i o"/>
|
||||
<set id="caretVowel" value="🥕a 🥕i 🥕o"/>
|
||||
</variables>
|
||||
|
||||
<transforms type="simple">
|
||||
<transformGroup>
|
||||
<transform from="${mark-caret}($[vowel])" to="$[1:caretVowel]" />
|
||||
</transformGroup>
|
||||
</transforms>
|
||||
|
||||
</keyboard3>
|
||||
|
|
@ -187,6 +187,10 @@ describe('vars', function () {
|
|||
CompilerMessages.Error_MissingStringVariable({id: 'missingStringInSet'})
|
||||
],
|
||||
},
|
||||
{
|
||||
subpath: 'sections/vars/fail-badref-7.xml',
|
||||
errors: true,
|
||||
},
|
||||
], varsDependencies);
|
||||
describe('should match some marker constants', () => {
|
||||
// neither of these live here, but, common/web/types does not import ldml-keyboard-constants otherwise.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue