Skip to content

Commit

Permalink
chore(core): create sample LDML keyboard that exercises effectively a…
Browse files Browse the repository at this point in the history
…ll functionality

For #10505
  • Loading branch information
srl295 committed Feb 15, 2024
1 parent 422984a commit 701291a
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/tests/unit/ldml/keyboards/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ tests_without_testdata = [

# These tests have a k_001_tiny-test.xml file as well.
tests_with_testdata = [
'und',
'k_001_tiny',
'k_006_backspace',
'k_007_transform_rgx',
Expand Down
12 changes: 12 additions & 0 deletions core/tests/unit/ldml/keyboards/und-test.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE keyboardTest3 SYSTEM "../../../../../resources/standards-data/ldml-keyboards/techpreview/dtd/ldmlKeyboardTest3.dtd">
<keyboardTest3 conformsTo="techpreview">
<info keyboard="und.xml" author="srl295" name="test" />

<tests name="separate">
<test name="key-1">
<keystroke key="1" />
<check result="1:basic:OK" />
</test>
</tests>
</keyboardTest3>
20 changes: 20 additions & 0 deletions core/tests/unit/ldml/keyboards/und.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>

<!--
Test Keyboard
-->

<!DOCTYPE keyboard3 SYSTEM "../../../../../resources/standards-data/ldml-keyboards/techpreview/dtd/ldmlKeyboard3.dtd">
<keyboard3 locale="und" conformsTo="techpreview">
<info layout="qwerty" name="Test Keyboards"/>

<keys>
<key id="1" output="1:basic:OK"/>
</keys>

<layers formId="us">
<layer modifiers="none" id="base">
<row keys="gap 1 2 3 4 5 6 7 8 9 0" />
</layer>
</layers>
</keyboard3>

0 comments on commit 701291a

Please sign in to comment.