summaryrefslogtreecommitdiff
path: root/testsuite/gtk
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-02-14 11:54:05 -0500
committerMatthias Clasen <mclasen@redhat.com>2021-02-14 11:56:24 -0500
commitf15aa2f3e535336ba177510a87b3f28070c76fc2 (patch)
tree36eaf1d3c722e817264e20fe5ca725461d98e27d /testsuite/gtk
parent5d6792137d2de0e93464a9fd6572b8693c708f1f (diff)
downloadgtk+-f15aa2f3e535336ba177510a87b3f28070c76fc2.tar.gz
imcontext: Fix a regression in Compose file parsing
We accidentally dropped the handing of # comments. Bring it back. Test included. Fixes: #3664
Diffstat (limited to 'testsuite/gtk')
-rw-r--r--testsuite/gtk/compose/comments4
-rw-r--r--testsuite/gtk/compose/comments.expected5
2 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/gtk/compose/comments b/testsuite/gtk/compose/comments
new file mode 100644
index 0000000000..062c9aac08
--- /dev/null
+++ b/testsuite/gtk/compose/comments
@@ -0,0 +1,4 @@
+<Multi_key> <a> : "a" # just an a
+<Multi_key> <b> : "#" # not an a
+# this line is ignored
+<Multi_key> <c> : "a" # wild and wilder: "@!$#
diff --git a/testsuite/gtk/compose/comments.expected b/testsuite/gtk/compose/comments.expected
new file mode 100644
index 0000000000..728817b5db
--- /dev/null
+++ b/testsuite/gtk/compose/comments.expected
@@ -0,0 +1,5 @@
+# n_seqs: 3
+# max_seq_len: 2
+<Uff20> <U61> : "a" # U61
+<Uff20> <U62> : "#" # U23
+<Uff20> <U63> : "a" # U61