mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
reftests: Fix border-image-repeat test
The new downscaling code in Cairo doesn't allow this test, so we remove the CSS that made the border downscaled. So the test does test less now, but it still tests the repeat modes of border images.
This commit is contained in:
parent
fee754e0d2
commit
542bd31d00
@ -8,7 +8,7 @@ GtkButton {
|
||||
border-image-source: url("border-image-balls.png");
|
||||
border-image-slice: 20;
|
||||
border-image-repeat: stretch;
|
||||
border-width: 5px;
|
||||
border-width: 20px;
|
||||
border-style: solid;
|
||||
}
|
||||
|
||||
@ -31,20 +31,25 @@ GtkButton {
|
||||
|
||||
#red {
|
||||
background-image: url("border-image-ball-red.png");
|
||||
background-color: black;
|
||||
}
|
||||
|
||||
#yellow {
|
||||
background-image: url("border-image-ball-yellow.png");
|
||||
background-color: black;
|
||||
}
|
||||
|
||||
#yellow-3 {
|
||||
background-image: url("border-image-3-balls-yellow.png");
|
||||
background-color: black;
|
||||
}
|
||||
|
||||
#green {
|
||||
background-image: url("border-image-ball-green.png");
|
||||
background-color: black;
|
||||
}
|
||||
|
||||
#green-3 {
|
||||
background-image: url("border-image-3-balls-green.png");
|
||||
background-color: black;
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -26,15 +26,15 @@ cat << EOF
|
||||
<child>
|
||||
<object class="GtkToolbar" id="toolbar-$hrepeat-$vrepeat-hstretch$side">
|
||||
<property name="name">yellow</property>
|
||||
<property name="width_request">13</property>
|
||||
<property name="height_request">5</property>
|
||||
<property name="width_request">52</property>
|
||||
<property name="height_request">20</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="show_arrow">False</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="x">`expr $x \* 25 + 5`</property>
|
||||
<property name="y">`expr $y \* 25 + $side \* 18`</property>
|
||||
<property name="x">`expr $x \* 100 + 20`</property>
|
||||
<property name="y">`expr $y \* 100 + $side \* 72`</property>
|
||||
</packing>
|
||||
</child>
|
||||
EOF
|
||||
@ -44,15 +44,15 @@ cat << EOF
|
||||
<child>
|
||||
<object class="GtkToolbar" id="toolbar-$hrepeat-$vrepeat-hrepeat$side">
|
||||
<property name="name">yellow-3</property>
|
||||
<property name="width_request">15</property>
|
||||
<property name="height_request">5</property>
|
||||
<property name="width_request">60</property>
|
||||
<property name="height_request">20</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="show_arrow">False</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="x">`expr $x \* 25 + 4`</property>
|
||||
<property name="y">`expr $y \* 25 + $side \* 18`</property>
|
||||
<property name="x">`expr $x \* 100 + 16`</property>
|
||||
<property name="y">`expr $y \* 100 + $side \* 72`</property>
|
||||
</packing>
|
||||
</child>
|
||||
EOF
|
||||
@ -62,15 +62,15 @@ cat << EOF
|
||||
<child>
|
||||
<object class="GtkToolbar" id="toolbar-$hrepeat-$vrepeat-hround$side">
|
||||
<property name="name">yellow-3</property>
|
||||
<property name="width_request">13</property>
|
||||
<property name="height_request">5</property>
|
||||
<property name="width_request">52</property>
|
||||
<property name="height_request">20</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="show_arrow">False</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="x">`expr $x \* 25 + 5`</property>
|
||||
<property name="y">`expr $y \* 25 + $side \* 18`</property>
|
||||
<property name="x">`expr $x \* 100 + 20`</property>
|
||||
<property name="y">`expr $y \* 100 + $side \* 72`</property>
|
||||
</packing>
|
||||
</child>
|
||||
EOF
|
||||
@ -80,29 +80,29 @@ cat << EOF
|
||||
<child>
|
||||
<object class="GtkToolbar" id="toolbar-$hrepeat-$vrepeat-hspace0$side">
|
||||
<property name="name">yellow</property>
|
||||
<property name="width_request">5</property>
|
||||
<property name="height_request">5</property>
|
||||
<property name="width_request">20</property>
|
||||
<property name="height_request">20</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="show_arrow">False</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="x">`expr $x \* 25 + 6`</property>
|
||||
<property name="y">`expr $y \* 25 + $side \* 18`</property>
|
||||
<property name="x">`expr $x \* 100 + 24`</property>
|
||||
<property name="y">`expr $y \* 100 + $side \* 72`</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolbar" id="toolbar-$hrepeat-$vrepeat-hspace1$side">
|
||||
<property name="name">yellow</property>
|
||||
<property name="width_request">5</property>
|
||||
<property name="height_request">5</property>
|
||||
<property name="width_request">20</property>
|
||||
<property name="height_request">20</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="show_arrow">False</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="x">`expr $x \* 25 + 12`</property>
|
||||
<property name="y">`expr $y \* 25 + $side \* 18`</property>
|
||||
<property name="x">`expr $x \* 100 + 48`</property>
|
||||
<property name="y">`expr $y \* 100 + $side \* 72`</property>
|
||||
</packing>
|
||||
</child>
|
||||
EOF
|
||||
@ -114,15 +114,15 @@ cat << EOF
|
||||
<child>
|
||||
<object class="GtkToolbar" id="toolbar-$hrepeat-$vrepeat-vstretch$side">
|
||||
<property name="name">green</property>
|
||||
<property name="width_request">5</property>
|
||||
<property name="height_request">13</property>
|
||||
<property name="width_request">20</property>
|
||||
<property name="height_request">52</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="show_arrow">False</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="x">`expr $x \* 25 + $side \* 18`</property>
|
||||
<property name="y">`expr $y \* 25 + 5`</property>
|
||||
<property name="x">`expr $x \* 100 + $side \* 72`</property>
|
||||
<property name="y">`expr $y \* 100 + 20`</property>
|
||||
</packing>
|
||||
</child>
|
||||
EOF
|
||||
@ -132,15 +132,15 @@ cat << EOF
|
||||
<child>
|
||||
<object class="GtkToolbar" id="toolbar-$hrepeat-$vrepeat-vrepeat$side">
|
||||
<property name="name">green-3</property>
|
||||
<property name="width_request">5</property>
|
||||
<property name="height_request">15</property>
|
||||
<property name="width_request">20</property>
|
||||
<property name="height_request">60</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="show_arrow">False</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="x">`expr $x \* 25 + $side \* 18`</property>
|
||||
<property name="y">`expr $y \* 25 + 4`</property>
|
||||
<property name="x">`expr $x \* 100 + $side \* 72`</property>
|
||||
<property name="y">`expr $y \* 100 + 16`</property>
|
||||
</packing>
|
||||
</child>
|
||||
EOF
|
||||
@ -150,15 +150,15 @@ cat << EOF
|
||||
<child>
|
||||
<object class="GtkToolbar" id="toolbar-$hrepeat-$vrepeat-vround$side">
|
||||
<property name="name">green-3</property>
|
||||
<property name="width_request">5</property>
|
||||
<property name="height_request">13</property>
|
||||
<property name="width_request">20</property>
|
||||
<property name="height_request">52</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="show_arrow">False</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="x">`expr $x \* 25 + $side \* 18`</property>
|
||||
<property name="y">`expr $y \* 25 + 5`</property>
|
||||
<property name="x">`expr $x \* 100 + $side \* 72`</property>
|
||||
<property name="y">`expr $y \* 100 + 20`</property>
|
||||
</packing>
|
||||
</child>
|
||||
EOF
|
||||
@ -168,29 +168,29 @@ cat << EOF
|
||||
<child>
|
||||
<object class="GtkToolbar" id="toolbar-$hrepeat-$vrepeat-vspace0$side">
|
||||
<property name="name">green</property>
|
||||
<property name="width_request">5</property>
|
||||
<property name="height_request">5</property>
|
||||
<property name="width_request">20</property>
|
||||
<property name="height_request">20</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="show_arrow">False</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="x">`expr $x \* 25 + $side \* 18`</property>
|
||||
<property name="y">`expr $y \* 25 + 6`</property>
|
||||
<property name="x">`expr $x \* 100 + $side \* 72`</property>
|
||||
<property name="y">`expr $y \* 100 + 24`</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolbar" id="toolbar-$hrepeat-$vrepeat-vspace1$side">
|
||||
<property name="name">green</property>
|
||||
<property name="width_request">5</property>
|
||||
<property name="height_request">5</property>
|
||||
<property name="width_request">20</property>
|
||||
<property name="height_request">20</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="show_arrow">False</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="x">`expr $x \* 25 + $side \* 18`</property>
|
||||
<property name="y">`expr $y \* 25 + 12`</property>
|
||||
<property name="x">`expr $x \* 100 + $side \* 72`</property>
|
||||
<property name="y">`expr $y \* 100 + 48`</property>
|
||||
</packing>
|
||||
</child>
|
||||
EOF
|
||||
@ -201,23 +201,17 @@ EOF
|
||||
for xcorner in 0 1; do
|
||||
cat << EOF
|
||||
<child>
|
||||
<object class="GtkEventBox" id="eventbox-corner-$hrepeat-$vrepeat-$xcorner$ycorner">
|
||||
<object class="GtkToolbar" id="toolbar-corner-$hrepeat-$vrepeat-$xcorner$ycorner">
|
||||
<property name="name">red</property>
|
||||
<property name="width_request">20</property>
|
||||
<property name="height_request">20</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<child>
|
||||
<object class="GtkToolbar" id="toolbar-corner-$hrepeat-$vrepeat-$xcorner$ycorner">
|
||||
<property name="name">red</property>
|
||||
<property name="width_request">5</property>
|
||||
<property name="height_request">5</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="show_arrow">False</property>
|
||||
</object>
|
||||
</child>
|
||||
<property name="show_arrow">False</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="x">`expr $x \* 25 + $xcorner \* 18`</property>
|
||||
<property name="y">`expr $y \* 25 + $ycorner \* 18`</property>
|
||||
<property name="x">`expr $x \* 100 + $xcorner \* 72`</property>
|
||||
<property name="y">`expr $y \* 100 + $ycorner \* 72`</property>
|
||||
</packing>
|
||||
</child>
|
||||
EOF
|
||||
|
@ -8,12 +8,12 @@
|
||||
<object class="GtkGrid" id="grid2">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="row_spacing">2</property>
|
||||
<property name="column_spacing">2</property>
|
||||
<property name="row_spacing">8</property>
|
||||
<property name="column_spacing">8</property>
|
||||
<child>
|
||||
<object class="GtkButton" id="eventbox1">
|
||||
<property name="width_request">23</property>
|
||||
<property name="height_request">23</property>
|
||||
<property name="width_request">92</property>
|
||||
<property name="height_request">92</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<style>
|
||||
@ -29,8 +29,8 @@
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton" id="eventbox2">
|
||||
<property name="width_request">23</property>
|
||||
<property name="height_request">23</property>
|
||||
<property name="width_request">92</property>
|
||||
<property name="height_request">92</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<style>
|
||||
@ -46,8 +46,8 @@
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton" id="eventbox3">
|
||||
<property name="width_request">23</property>
|
||||
<property name="height_request">23</property>
|
||||
<property name="width_request">92</property>
|
||||
<property name="height_request">92</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<style>
|
||||
@ -63,8 +63,8 @@
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton" id="eventbox4">
|
||||
<property name="width_request">23</property>
|
||||
<property name="height_request">23</property>
|
||||
<property name="width_request">92</property>
|
||||
<property name="height_request">92</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<style>
|
||||
@ -80,8 +80,8 @@
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton" id="eventbox5">
|
||||
<property name="width_request">23</property>
|
||||
<property name="height_request">23</property>
|
||||
<property name="width_request">92</property>
|
||||
<property name="height_request">92</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<style>
|
||||
@ -97,8 +97,8 @@
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton" id="eventbox6">
|
||||
<property name="width_request">23</property>
|
||||
<property name="height_request">23</property>
|
||||
<property name="width_request">92</property>
|
||||
<property name="height_request">92</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<style>
|
||||
@ -114,8 +114,8 @@
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton" id="eventbox7">
|
||||
<property name="width_request">23</property>
|
||||
<property name="height_request">23</property>
|
||||
<property name="width_request">92</property>
|
||||
<property name="height_request">92</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<style>
|
||||
@ -131,8 +131,8 @@
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton" id="eventbox8">
|
||||
<property name="width_request">23</property>
|
||||
<property name="height_request">23</property>
|
||||
<property name="width_request">92</property>
|
||||
<property name="height_request">92</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<style>
|
||||
@ -148,8 +148,8 @@
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton" id="eventbox9">
|
||||
<property name="width_request">23</property>
|
||||
<property name="height_request">23</property>
|
||||
<property name="width_request">92</property>
|
||||
<property name="height_request">92</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<style>
|
||||
@ -165,8 +165,8 @@
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton" id="eventbox10">
|
||||
<property name="width_request">23</property>
|
||||
<property name="height_request">23</property>
|
||||
<property name="width_request">92</property>
|
||||
<property name="height_request">92</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<style>
|
||||
@ -182,8 +182,8 @@
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton" id="eventbox11">
|
||||
<property name="width_request">23</property>
|
||||
<property name="height_request">23</property>
|
||||
<property name="width_request">92</property>
|
||||
<property name="height_request">92</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<style>
|
||||
@ -199,8 +199,8 @@
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton" id="eventbox12">
|
||||
<property name="width_request">23</property>
|
||||
<property name="height_request">23</property>
|
||||
<property name="width_request">92</property>
|
||||
<property name="height_request">92</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<style>
|
||||
@ -216,8 +216,8 @@
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton" id="eventbox13">
|
||||
<property name="width_request">23</property>
|
||||
<property name="height_request">23</property>
|
||||
<property name="width_request">92</property>
|
||||
<property name="height_request">92</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<style>
|
||||
@ -233,8 +233,8 @@
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton" id="eventbox14">
|
||||
<property name="width_request">23</property>
|
||||
<property name="height_request">23</property>
|
||||
<property name="width_request">92</property>
|
||||
<property name="height_request">92</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<style>
|
||||
@ -250,8 +250,8 @@
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton" id="eventbox15">
|
||||
<property name="width_request">23</property>
|
||||
<property name="height_request">23</property>
|
||||
<property name="width_request">92</property>
|
||||
<property name="height_request">92</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<style>
|
||||
@ -267,8 +267,8 @@
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton" id="eventbox16">
|
||||
<property name="width_request">23</property>
|
||||
<property name="height_request">23</property>
|
||||
<property name="width_request">92</property>
|
||||
<property name="height_request">92</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<style>
|
||||
|
Loading…
Reference in New Issue
Block a user