reftest: Add reftest for scaled image borders - fails on GDK_SCALE=2

This commit is contained in:
Alexander Larsson 2013-07-05 15:21:55 +02:00
parent 38b7159c39
commit d08a12ae0b
5 changed files with 100 additions and 0 deletions

View File

@ -0,0 +1,30 @@
@import "reset-to-defaults.css";
.button-image {
border-image: -gtk-scaled(url("border-rgb.png"),url("border-rgb@2.png")) 3 stretch;
border-style: groove;
border-width: 3px 3px 3px 3px;
}
.button-not-image {
border-color: #ff0000;
border-style: solid;
border-width: 1px 1px 1px 1px;
}
.button-not-image2 {
border-color: #00ff00;
border-style: solid;
border-width: 1px 1px 1px 1px;
}
.button-not-image3 {
border-color: #0000ff;
border-style: solid;
border-width: 1px 1px 1px 1px;
}

View File

@ -0,0 +1,48 @@
<?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="GtkButton" id="button1">
<property name="name">reference</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="has_focus">True</property>
<property name="receives_default">True</property>
<property name="use_action_appearance">False</property>
<style>
<class name="button-not-image"/>
</style>
<child>
<object class="GtkButton" id="button2">
<property name="name">reference</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="has_focus">True</property>
<property name="receives_default">True</property>
<property name="use_action_appearance">False</property>
<style>
<class name="button-not-image2"/>
</style>
<child>
<object class="GtkButton" id="button3">
<property name="name">reference</property>
<property name="label" translatable="yes">Hello World</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="has_focus">True</property>
<property name="receives_default">True</property>
<property name="use_action_appearance">False</property>
<style>
<class name="button-not-image3"/>
</style>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</interface>

View File

@ -0,0 +1,22 @@
<?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="GtkButton" id="button1">
<property name="name">reference</property>
<property name="label" translatable="yes">Hello World</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="has_focus">True</property>
<property name="receives_default">True</property>
<property name="use_action_appearance">False</property>
<style>
<class name="button-image"/>
</style>
</object>
</child>
</object>
</interface>

Binary file not shown.

After

Width:  |  Height:  |  Size: 218 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 228 B