mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
Add more CSS node tests for notebooks
This commit is contained in:
parent
d73f6b8c50
commit
65ae48d707
@ -38,7 +38,10 @@ test_data = \
|
||||
expander.rtl.ui expander.rtl.nodes \
|
||||
levelbar.ltr.ui levelbar.ltr.nodes \
|
||||
levelbar.rtl.ui levelbar.rtl.nodes \
|
||||
notebook.ui notebook.nodes \
|
||||
notebook.top.ui notebook.top.nodes \
|
||||
notebook.left.ui notebook.left.nodes \
|
||||
notebook.right.ui notebook.right.nodes \
|
||||
notebook.bottom.ui notebook.bottom.nodes \
|
||||
paned.ltr.ui paned.ltr.nodes \
|
||||
paned.rtl.ui paned.rtl.nodes \
|
||||
progressbar.ui progressbar.nodes \
|
||||
|
18
testsuite/css/nodes/notebook.bottom.nodes
Normal file
18
testsuite/css/nodes/notebook.bottom.nodes
Normal file
@ -0,0 +1,18 @@
|
||||
[window.background:dir(ltr)]
|
||||
decoration:dir(ltr)
|
||||
notebook.frame:dir(ltr)
|
||||
stack:dir(ltr)
|
||||
button#page1.text-button:dir(ltr)
|
||||
label:dir(ltr)
|
||||
button#page2.text-button:dir(ltr)
|
||||
label:dir(ltr)
|
||||
header.bottom:dir(ltr)
|
||||
button#start.text-button:dir(ltr)
|
||||
label:dir(ltr)
|
||||
tabs:dir(ltr)
|
||||
tab:active:dir(ltr)
|
||||
label#tab1:dir(ltr)
|
||||
tab:dir(ltr)
|
||||
label#tab2:dir(ltr)
|
||||
button#end.text-button:dir(ltr)
|
||||
label:dir(ltr)
|
56
testsuite/css/nodes/notebook.bottom.ui
Normal file
56
testsuite/css/nodes/notebook.bottom.ui
Normal file
@ -0,0 +1,56 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<!-- interface-requires gtk+ 3.0 -->
|
||||
<object class="GtkWindow" id="window1">
|
||||
<property name="can_focus">False</property>
|
||||
<property name="type">popup</property>
|
||||
<child>
|
||||
<object class="GtkNotebook">
|
||||
<property name="visible">True</property>
|
||||
<property name="tab-pos">bottom</property>
|
||||
<child>
|
||||
<object class="GtkButton">
|
||||
<property name="name">page1</property>
|
||||
<property name="label" translatable="yes">Yes</property>
|
||||
<property name="visible">True</property>
|
||||
</object>
|
||||
</child>
|
||||
<child type="tab">
|
||||
<object class="GtkLabel">
|
||||
<property name="name">tab1</property>
|
||||
<property name="label" translatable="yes">Tab 1</property>
|
||||
<property name="visible">True</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton">
|
||||
<property name="name">page2</property>
|
||||
<property name="label" translatable="yes">No</property>
|
||||
<property name="visible">True</property>
|
||||
</object>
|
||||
</child>
|
||||
<child type="tab">
|
||||
<object class="GtkLabel" id="tab2">
|
||||
<property name="name">tab2</property>
|
||||
<property name="label" translatable="yes">Tab 2</property>
|
||||
<property name="visible">True</property>
|
||||
</object>
|
||||
</child>
|
||||
<child type="action-start">
|
||||
<object class="GtkButton">
|
||||
<property name="name">start</property>
|
||||
<property name="label" translatable="yes">Action</property>
|
||||
<property name="visible">True</property>
|
||||
</object>
|
||||
</child>
|
||||
<child type="action-end">
|
||||
<object class="GtkButton">
|
||||
<property name="name">end</property>
|
||||
<property name="label" translatable="yes">Action</property>
|
||||
<property name="visible">True</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
18
testsuite/css/nodes/notebook.left.nodes
Normal file
18
testsuite/css/nodes/notebook.left.nodes
Normal file
@ -0,0 +1,18 @@
|
||||
[window.background:dir(ltr)]
|
||||
decoration:dir(ltr)
|
||||
notebook.frame:dir(ltr)
|
||||
header.left:dir(ltr)
|
||||
button#start.text-button:dir(ltr)
|
||||
label:dir(ltr)
|
||||
tabs:dir(ltr)
|
||||
tab:active:dir(ltr)
|
||||
label#tab1:dir(ltr)
|
||||
tab:dir(ltr)
|
||||
label#tab2:dir(ltr)
|
||||
button#end.text-button:dir(ltr)
|
||||
label:dir(ltr)
|
||||
stack:dir(ltr)
|
||||
button#page1.text-button:dir(ltr)
|
||||
label:dir(ltr)
|
||||
button#page2.text-button:dir(ltr)
|
||||
label:dir(ltr)
|
56
testsuite/css/nodes/notebook.left.ui
Normal file
56
testsuite/css/nodes/notebook.left.ui
Normal file
@ -0,0 +1,56 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<!-- interface-requires gtk+ 3.0 -->
|
||||
<object class="GtkWindow" id="window1">
|
||||
<property name="can_focus">False</property>
|
||||
<property name="type">popup</property>
|
||||
<child>
|
||||
<object class="GtkNotebook">
|
||||
<property name="visible">True</property>
|
||||
<property name="tab-pos">left</property>
|
||||
<child>
|
||||
<object class="GtkButton">
|
||||
<property name="name">page1</property>
|
||||
<property name="label" translatable="yes">Yes</property>
|
||||
<property name="visible">True</property>
|
||||
</object>
|
||||
</child>
|
||||
<child type="tab">
|
||||
<object class="GtkLabel">
|
||||
<property name="name">tab1</property>
|
||||
<property name="label" translatable="yes">Tab 1</property>
|
||||
<property name="visible">True</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton">
|
||||
<property name="name">page2</property>
|
||||
<property name="label" translatable="yes">No</property>
|
||||
<property name="visible">True</property>
|
||||
</object>
|
||||
</child>
|
||||
<child type="tab">
|
||||
<object class="GtkLabel" id="tab2">
|
||||
<property name="name">tab2</property>
|
||||
<property name="label" translatable="yes">Tab 2</property>
|
||||
<property name="visible">True</property>
|
||||
</object>
|
||||
</child>
|
||||
<child type="action-start">
|
||||
<object class="GtkButton">
|
||||
<property name="name">start</property>
|
||||
<property name="label" translatable="yes">Action</property>
|
||||
<property name="visible">True</property>
|
||||
</object>
|
||||
</child>
|
||||
<child type="action-end">
|
||||
<object class="GtkButton">
|
||||
<property name="name">end</property>
|
||||
<property name="label" translatable="yes">Action</property>
|
||||
<property name="visible">True</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
@ -1,16 +0,0 @@
|
||||
[window.background:dir(ltr)]
|
||||
decoration:dir(ltr)
|
||||
notebook.frame:dir(ltr)
|
||||
header.top:dir(ltr)
|
||||
button.text-button:dir(ltr)
|
||||
label:dir(ltr)
|
||||
tabs:dir(ltr)
|
||||
tab:active:dir(ltr)
|
||||
label:dir(ltr)
|
||||
tab:dir(ltr)
|
||||
label:dir(ltr)
|
||||
stack:dir(ltr)
|
||||
button.text-button:dir(ltr)
|
||||
label:dir(ltr)
|
||||
button.text-button:dir(ltr)
|
||||
label:dir(ltr)
|
18
testsuite/css/nodes/notebook.right.nodes
Normal file
18
testsuite/css/nodes/notebook.right.nodes
Normal file
@ -0,0 +1,18 @@
|
||||
[window.background:dir(ltr)]
|
||||
decoration:dir(ltr)
|
||||
notebook.frame:dir(ltr)
|
||||
stack:dir(ltr)
|
||||
button#page1.text-button:dir(ltr)
|
||||
label:dir(ltr)
|
||||
button#page2.text-button:dir(ltr)
|
||||
label:dir(ltr)
|
||||
header.right:dir(ltr)
|
||||
button#start.text-button:dir(ltr)
|
||||
label:dir(ltr)
|
||||
tabs:dir(ltr)
|
||||
tab:active:dir(ltr)
|
||||
label#tab1:dir(ltr)
|
||||
tab:dir(ltr)
|
||||
label#tab2:dir(ltr)
|
||||
button#end.text-button:dir(ltr)
|
||||
label:dir(ltr)
|
56
testsuite/css/nodes/notebook.right.ui
Normal file
56
testsuite/css/nodes/notebook.right.ui
Normal file
@ -0,0 +1,56 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<!-- interface-requires gtk+ 3.0 -->
|
||||
<object class="GtkWindow" id="window1">
|
||||
<property name="can_focus">False</property>
|
||||
<property name="type">popup</property>
|
||||
<child>
|
||||
<object class="GtkNotebook">
|
||||
<property name="visible">True</property>
|
||||
<property name="tab-pos">right</property>
|
||||
<child>
|
||||
<object class="GtkButton">
|
||||
<property name="name">page1</property>
|
||||
<property name="label" translatable="yes">Yes</property>
|
||||
<property name="visible">True</property>
|
||||
</object>
|
||||
</child>
|
||||
<child type="tab">
|
||||
<object class="GtkLabel">
|
||||
<property name="name">tab1</property>
|
||||
<property name="label" translatable="yes">Tab 1</property>
|
||||
<property name="visible">True</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton">
|
||||
<property name="name">page2</property>
|
||||
<property name="label" translatable="yes">No</property>
|
||||
<property name="visible">True</property>
|
||||
</object>
|
||||
</child>
|
||||
<child type="tab">
|
||||
<object class="GtkLabel" id="tab2">
|
||||
<property name="name">tab2</property>
|
||||
<property name="label" translatable="yes">Tab 2</property>
|
||||
<property name="visible">True</property>
|
||||
</object>
|
||||
</child>
|
||||
<child type="action-start">
|
||||
<object class="GtkButton">
|
||||
<property name="name">start</property>
|
||||
<property name="label" translatable="yes">Action</property>
|
||||
<property name="visible">True</property>
|
||||
</object>
|
||||
</child>
|
||||
<child type="action-end">
|
||||
<object class="GtkButton">
|
||||
<property name="name">end</property>
|
||||
<property name="label" translatable="yes">Action</property>
|
||||
<property name="visible">True</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
@ -5,34 +5,46 @@
|
||||
<property name="can_focus">False</property>
|
||||
<property name="type">popup</property>
|
||||
<child>
|
||||
<object class="GtkNotebook" id="notebook1">
|
||||
<object class="GtkNotebook">
|
||||
<property name="visible">True</property>
|
||||
<child>
|
||||
<object class="GtkButton" id="page1">
|
||||
<object class="GtkButton">
|
||||
<property name="name">page1</property>
|
||||
<property name="label" translatable="yes">Yes</property>
|
||||
<property name="visible">True</property>
|
||||
</object>
|
||||
</child>
|
||||
<child type="tab">
|
||||
<object class="GtkLabel" id="tab1">
|
||||
<object class="GtkLabel">
|
||||
<property name="name">tab1</property>
|
||||
<property name="label" translatable="yes">Tab 1</property>
|
||||
<property name="visible">True</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton" id="page2">
|
||||
<object class="GtkButton">
|
||||
<property name="name">page2</property>
|
||||
<property name="label" translatable="yes">No</property>
|
||||
<property name="visible">True</property>
|
||||
</object>
|
||||
</child>
|
||||
<child type="tab">
|
||||
<object class="GtkLabel" id="tab2">
|
||||
<property name="name">tab2</property>
|
||||
<property name="label" translatable="yes">Tab 2</property>
|
||||
<property name="visible">True</property>
|
||||
</object>
|
||||
</child>
|
||||
<child type="action-start">
|
||||
<object class="GtkButton" id="action">
|
||||
<object class="GtkButton">
|
||||
<property name="name">start</property>
|
||||
<property name="label" translatable="yes">Action</property>
|
||||
<property name="visible">True</property>
|
||||
</object>
|
||||
</child>
|
||||
<child type="action-end">
|
||||
<object class="GtkButton">
|
||||
<property name="name">end</property>
|
||||
<property name="label" translatable="yes">Action</property>
|
||||
<property name="visible">True</property>
|
||||
</object>
|
Loading…
Reference in New Issue
Block a user