forked from AuroraMiddleware/gtk
reftests: Add test for GtkImage use-fallback property
Fallback seems to be working in the GtkIconTheme test suite, but fails in GtkImage itself. This is a test for a bug in the Bluetooth settings. An icon named "phone-apple-iphone" should fallback to "phone" if the gnome-icon-theme-extras package isn't installed.
This commit is contained in:
parent
1e51398e9a
commit
8bd98c08aa
@ -265,6 +265,8 @@ testdata = \
|
||||
gtk-icontheme-sizing.css \
|
||||
gtk-icontheme-sizing.ref.ui \
|
||||
gtk-icontheme-sizing.ui \
|
||||
gtk-image.ui \
|
||||
gtk-image.ref.ui \
|
||||
icon-shadow-no-transform.css \
|
||||
icon-shadow-no-transform.ref.ui \
|
||||
icon-shadow-no-transform.ui \
|
||||
|
17
testsuite/reftests/gtk-image.ref.ui
Normal file
17
testsuite/reftests/gtk-image.ref.ui
Normal file
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Generated with glade 3.19.0 -->
|
||||
<interface>
|
||||
<requires lib="gtk+" version="3.10"/>
|
||||
<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="icon_name">edit-delete</property>
|
||||
<property name="use_fallback">True</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
17
testsuite/reftests/gtk-image.ui
Normal file
17
testsuite/reftests/gtk-image.ui
Normal file
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Generated with glade 3.19.0 -->
|
||||
<interface>
|
||||
<requires lib="gtk+" version="3.10"/>
|
||||
<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="icon_name">edit-delete-lolwtfbbq</property>
|
||||
<property name="use_fallback">True</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
Loading…
Reference in New Issue
Block a user