[gtk/wip/matthiasc/focus2: 40/50] Add some stack focus tests
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/focus2: 40/50] Add some stack focus tests
- Date: Thu, 7 Mar 2019 11:43:44 +0000 (UTC)
commit 50243b06447a078825d4f3db389d77028d9fb1fc
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Mar 4 19:53:33 2019 -0500
Add some stack focus tests
testsuite/gtk/focus-chain/stack.txt | 3 +++
testsuite/gtk/focus-chain/stack.ui | 40 ++++++++++++++++++++++++++++++++++++
testsuite/gtk/focus-chain/stack2.txt | 3 +++
testsuite/gtk/focus-chain/stack2.ui | 40 ++++++++++++++++++++++++++++++++++++
4 files changed, 86 insertions(+)
---
diff --git a/testsuite/gtk/focus-chain/stack.txt b/testsuite/gtk/focus-chain/stack.txt
new file mode 100644
index 0000000000..8687924026
--- /dev/null
+++ b/testsuite/gtk/focus-chain/stack.txt
@@ -0,0 +1,3 @@
+GtkToggleButton
+GtkToggleButton
+page1
diff --git a/testsuite/gtk/focus-chain/stack.ui b/testsuite/gtk/focus-chain/stack.ui
new file mode 100644
index 0000000000..2ce89fd034
--- /dev/null
+++ b/testsuite/gtk/focus-chain/stack.ui
@@ -0,0 +1,40 @@
+<interface>
+ <object class="GtkWindow" id="window1">
+ <property name="type">popup</property>
+ <child>
+ <object class="GtkBox" id="box1">
+ <child>
+ <object class="GtkStackSwitcher" id="stackswitcher1">
+ <property name="stack">stack1</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkStack" id="stack1">
+ <child>
+ <object class="GtkStackPage">
+ <property name="name">page1</property>
+ <property name="title">Page 1</property>
+ <property name="child">
+ <object class="GtkButton" id="page1">
+ <property name="label" translatable="yes">Yes</property>
+ </object>
+ </property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkStackPage">
+ <property name="name">page2</property>
+ <property name="title">Page 2</property>
+ <property name="child">
+ <object class="GtkButton" id="page2">
+ <property name="label" translatable="yes">No</property>
+ </object>
+ </property>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+</interface>
diff --git a/testsuite/gtk/focus-chain/stack2.txt b/testsuite/gtk/focus-chain/stack2.txt
new file mode 100644
index 0000000000..09079ee932
--- /dev/null
+++ b/testsuite/gtk/focus-chain/stack2.txt
@@ -0,0 +1,3 @@
+page1
+GtkToggleButton
+GtkToggleButton
diff --git a/testsuite/gtk/focus-chain/stack2.ui b/testsuite/gtk/focus-chain/stack2.ui
new file mode 100644
index 0000000000..3b43c3f3c4
--- /dev/null
+++ b/testsuite/gtk/focus-chain/stack2.ui
@@ -0,0 +1,40 @@
+<interface>
+ <object class="GtkWindow" id="window1">
+ <property name="type">popup</property>
+ <child>
+ <object class="GtkBox" id="box1">
+ <child>
+ <object class="GtkStack" id="stack1">
+ <child>
+ <object class="GtkStackPage">
+ <property name="name">page1</property>
+ <property name="title">Page 1</property>
+ <property name="child">
+ <object class="GtkButton" id="page1">
+ <property name="label" translatable="yes">Yes</property>
+ </object>
+ </property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkStackPage">
+ <property name="name">page2</property>
+ <property name="title">Page 2</property>
+ <property name="child">
+ <object class="GtkButton" id="page2">
+ <property name="label" translatable="yes">No</property>
+ </object>
+ </property>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child>
+ <object class="GtkStackSwitcher" id="stackswitcher1">
+ <property name="stack">stack1</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]