reftest: Add reftest for CSS sizing fix
The test uses a GtkBox for rendering the background, but it could use any other widget that is not used in the reference.
This commit is contained in:
parent
27b9efbea2
commit
386e59683a
@ -221,6 +221,9 @@ testdata = \
|
|||||||
grid-spacing3.css \
|
grid-spacing3.css \
|
||||||
grid-spacing3.ref.ui \
|
grid-spacing3.ref.ui \
|
||||||
grid-spacing3.ui \
|
grid-spacing3.ui \
|
||||||
|
gtk-icontheme-sizing.css \
|
||||||
|
gtk-icontheme-sizing.ref.ui \
|
||||||
|
gtk-icontheme-sizing.ui \
|
||||||
icon-shadow-no-transform.css \
|
icon-shadow-no-transform.css \
|
||||||
icon-shadow-no-transform.ref.ui \
|
icon-shadow-no-transform.ref.ui \
|
||||||
icon-shadow-no-transform.ui \
|
icon-shadow-no-transform.ui \
|
||||||
|
3
testsuite/reftests/gtk-icontheme-sizing.css
Normal file
3
testsuite/reftests/gtk-icontheme-sizing.css
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
GtkBox {
|
||||||
|
background-image: -gtk-icontheme("pan-down-symbolic");
|
||||||
|
}
|
18
testsuite/reftests/gtk-icontheme-sizing.ref.ui
Normal file
18
testsuite/reftests/gtk-icontheme-sizing.ref.ui
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!-- Generated with glade 3.18.1 -->
|
||||||
|
<interface>
|
||||||
|
<requires lib="gtk+" version="3.12"/>
|
||||||
|
<object class="GtkWindow" id="window1">
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="type">popup</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImage" id="image1">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="pixel_size">100</property>
|
||||||
|
<property name="icon_name">pan-down-symbolic</property>
|
||||||
|
<property name="icon_size">0</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</interface>
|
21
testsuite/reftests/gtk-icontheme-sizing.ui
Normal file
21
testsuite/reftests/gtk-icontheme-sizing.ui
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!-- Generated with glade 3.18.1 -->
|
||||||
|
<interface>
|
||||||
|
<requires lib="gtk+" version="3.12"/>
|
||||||
|
<object class="GtkWindow" id="window1">
|
||||||
|
<property name="width_request">100</property>
|
||||||
|
<property name="height_request">100</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="type">popup</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox" id="box1">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="orientation">vertical</property>
|
||||||
|
<child>
|
||||||
|
<placeholder/>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</interface>
|
Loading…
Reference in New Issue
Block a user