summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorM Hickford <mirth.hickford@gmail.com>2022-01-24 02:16:08 +0100
committerGitHub <noreply@github.com>2022-01-24 11:16:08 +1000
commitefa99624320f54e6e1ff24e4c4b1fcecdfba43d5 (patch)
treeafe734a69b090dd0c3e4f4cd05029113e2afdc03 /test
parent9b05825e534ee4e4b2206fffcfbabbafdc69471d (diff)
downloadxorg-lib-libxkbcommon-efa99624320f54e6e1ff24e4c4b1fcecdfba43d5.tar.gz
Variants should inherit iso639, iso3166 and brief from parent layout if omitted (#266)
Diffstat (limited to 'test')
-rw-r--r--test/registry.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/registry.c b/test/registry.c
index 85a5b6e..54313ba 100644
--- a/test/registry.c
+++ b/test/registry.c
@@ -620,6 +620,7 @@ test_load_full(void)
struct test_layout system_layouts[] = {
{"l1", NO_VARIANT, "lbrief1", "ldesc1"},
{"l1", "v1", "vbrief1", "vdesc1"},
+ {"l1", "v2", NULL, "vdesc2"},
{NULL},
};
struct test_option_group system_groups[] = {
@@ -654,6 +655,11 @@ test_load_full(void)
assert(cmp_layouts(&system_layouts[1], l));
rxkb_layout_unref(l);
+ l = fetch_layout(ctx, "l1", "v2");
+ struct test_layout expected = {"l1", "v2", "lbrief1", "vdesc2"};
+ assert(cmp_layouts(&expected, l));
+ rxkb_layout_unref(l);
+
g = fetch_option_group(ctx, "grp1");
assert(cmp_option_groups(&system_groups[0], g, CMP_EXACT));
rxkb_option_group_unref(g);