Add a focus-chain test for focusable containers

This commit is contained in:
Matthias Clasen
2019-06-11 17:10:16 +00:00
parent ddee5cfc43
commit f63cec30a4
4 changed files with 41 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
entry1 GtkText
box
entry2 GtkText
entry3 GtkText
WRAP

View File

@@ -0,0 +1,5 @@
entry3 GtkText
entry2 GtkText
box
entry1 GtkText
WRAP

View File

@@ -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>

View File

@@ -136,6 +136,8 @@ focus_chain_tests = [
[ 'basic', 'tab-backward' ],
[ 'basic', 'left' ],
[ 'basic', 'right' ],
[ 'focusable-container', 'tab' ],
[ 'focusable-container', 'tab-backward' ],
]
focus_chain = executable(