mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-13 04:10:13 +00:00
Add a CSS node test for notebooks
This commit is contained in:
parent
d2c1203ef1
commit
669ced3984
@ -25,6 +25,7 @@ test_css_nodes_SOURCES = \
|
||||
test-css-nodes.c
|
||||
|
||||
test_data = \
|
||||
notebook.ui notebook.nodes \
|
||||
$(NULL)
|
||||
|
||||
EXTRA_DIST += $(test_in_files) $(test_data)
|
||||
|
15
testsuite/css/nodes/notebook.nodes
Normal file
15
testsuite/css/nodes/notebook.nodes
Normal file
@ -0,0 +1,15 @@
|
||||
window visible=0 state=dir-ltr classes=background
|
||||
decoration visible=1 state=dir-ltr
|
||||
notebook visible=1 state=dir-ltr classes=frame
|
||||
header visible=1 state=dir-ltr classes=top
|
||||
button visible=1 state=dir-ltr classes=text-button
|
||||
label visible=1 state=dir-ltr
|
||||
tabs visible=1 state=dir-ltr
|
||||
tab visible=1 state=active|dir-ltr
|
||||
label visible=1 state=dir-ltr
|
||||
tab visible=1 state=dir-ltr
|
||||
label visible=1 state=dir-ltr
|
||||
button visible=1 state=dir-ltr classes=text-button
|
||||
label visible=1 state=dir-ltr
|
||||
button visible=1 state=dir-ltr classes=text-button
|
||||
label visible=1 state=dir-ltr
|
43
testsuite/css/nodes/notebook.ui
Normal file
43
testsuite/css/nodes/notebook.ui
Normal file
@ -0,0 +1,43 @@
|
||||
<?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" id="notebook1">
|
||||
<property name="visible">True</property>
|
||||
<child>
|
||||
<object class="GtkButton" id="page1">
|
||||
<property name="label" translatable="yes">Yes</property>
|
||||
<property name="visible">True</property>
|
||||
</object>
|
||||
</child>
|
||||
<child type="tab">
|
||||
<object class="GtkLabel" id="tab1">
|
||||
<property name="label" translatable="yes">Tab 1</property>
|
||||
<property name="visible">True</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton" id="page2">
|
||||
<property name="label" translatable="yes">No</property>
|
||||
<property name="visible">True</property>
|
||||
</object>
|
||||
</child>
|
||||
<child type="tab">
|
||||
<object class="GtkLabel" id="tab2">
|
||||
<property name="label" translatable="yes">Tab 2</property>
|
||||
<property name="visible">True</property>
|
||||
</object>
|
||||
</child>
|
||||
<child type="action-start">
|
||||
<object class="GtkButton" id="action">
|
||||
<property name="label" translatable="yes">Action</property>
|
||||
<property name="visible">True</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
Loading…
Reference in New Issue
Block a user