summaryrefslogtreecommitdiff
path: root/testsuite/gtk/focus-chain
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-06-11 17:10:16 +0000
committerMatthias Clasen <mclasen@redhat.com>2019-06-11 17:15:02 +0000
commitf63cec30a49eafc9bbc8da38bf79c7e35efe764d (patch)
treea69993e4782bba60f8aaa10834c43bc7bb082813 /testsuite/gtk/focus-chain
parentddee5cfc43618f413197252dfaedeeb42edc8e52 (diff)
downloadgtk+-f63cec30a49eafc9bbc8da38bf79c7e35efe764d.tar.gz
Add a focus-chain test for focusable containers
Diffstat (limited to 'testsuite/gtk/focus-chain')
-rw-r--r--testsuite/gtk/focus-chain/focusable-container.tab5
-rw-r--r--testsuite/gtk/focus-chain/focusable-container.tab-backward5
-rw-r--r--testsuite/gtk/focus-chain/focusable-container.ui29
3 files changed, 39 insertions, 0 deletions
diff --git a/testsuite/gtk/focus-chain/focusable-container.tab b/testsuite/gtk/focus-chain/focusable-container.tab
new file mode 100644
index 0000000000..21816d5316
--- /dev/null
+++ b/testsuite/gtk/focus-chain/focusable-container.tab
@@ -0,0 +1,5 @@
+entry1 GtkText
+box
+entry2 GtkText
+entry3 GtkText
+WRAP
diff --git a/testsuite/gtk/focus-chain/focusable-container.tab-backward b/testsuite/gtk/focus-chain/focusable-container.tab-backward
new file mode 100644
index 0000000000..46d54a6137
--- /dev/null
+++ b/testsuite/gtk/focus-chain/focusable-container.tab-backward
@@ -0,0 +1,5 @@
+entry3 GtkText
+entry2 GtkText
+box
+entry1 GtkText
+WRAP
diff --git a/testsuite/gtk/focus-chain/focusable-container.ui b/testsuite/gtk/focus-chain/focusable-container.ui
new file mode 100644
index 0000000000..e6d2947d20
--- /dev/null
+++ b/testsuite/gtk/focus-chain/focusable-container.ui
@@ -0,0 +1,29 @@
+<interface>
+ <object class="GtkWindow" id="window">
+ <child>
+ <object class="GtkBox">
+ <child>
+ <object class="GtkEntry">
+ <property name="name">entry1</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkBox">
+ <property name="name">box</property>
+ <property name="can-focus">1</property>
+ <child>
+ <object class="GtkEntry">
+ <property name="name">entry2</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkEntry">
+ <property name="name">entry3</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+</interface>