Add a focus-chain test for focusable containers
This commit is contained in:
5
testsuite/gtk/focus-chain/focusable-container.tab
Normal file
5
testsuite/gtk/focus-chain/focusable-container.tab
Normal file
@@ -0,0 +1,5 @@
|
||||
entry1 GtkText
|
||||
box
|
||||
entry2 GtkText
|
||||
entry3 GtkText
|
||||
WRAP
|
||||
@@ -0,0 +1,5 @@
|
||||
entry3 GtkText
|
||||
entry2 GtkText
|
||||
box
|
||||
entry1 GtkText
|
||||
WRAP
|
||||
29
testsuite/gtk/focus-chain/focusable-container.ui
Normal file
29
testsuite/gtk/focus-chain/focusable-container.ui
Normal 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>
|
||||
@@ -136,6 +136,8 @@ focus_chain_tests = [
|
||||
[ 'basic', 'tab-backward' ],
|
||||
[ 'basic', 'left' ],
|
||||
[ 'basic', 'right' ],
|
||||
[ 'focusable-container', 'tab' ],
|
||||
[ 'focusable-container', 'tab-backward' ],
|
||||
]
|
||||
|
||||
focus_chain = executable(
|
||||
|
||||
Reference in New Issue
Block a user