Give up on border-image-repeat reftest

This commit is contained in:
Matthias Clasen 2014-02-04 09:49:30 -05:00
parent 4985c0d545
commit a91a793468
5 changed files with 0 additions and 2619 deletions

View File

@ -29,7 +29,6 @@ clean-local:
EXTRA_DIST += \
align-expand.sh \
border-image-repeat.sh \
$(NULL)
testdata = \
@ -102,9 +101,6 @@ testdata = \
border-image-gradient.css \
border-image-gradient.ref.ui \
border-image-gradient.ui \
border-image-repeat.css \
border-image-repeat.ref.ui \
border-image-repeat.ui \
border-image-url-scaled.css \
border-image-url-scaled.ref.ui \
border-image-url-scaled.ui \

View File

@ -1,65 +0,0 @@
@import "reset-to-defaults.css";
* {
background-size: 100% 100%;
}
GtkButton {
border-image-source: url("border-image-balls.png");
border-image-slice: 20;
border-image-repeat: stretch;
border-width: 20px;
border-style: solid;
}
.stretch-stretch { border-image-repeat: stretch stretch }
.stretch-repeat { border-image-repeat: stretch repeat }
.stretch-round { border-image-repeat: stretch round }
.stretch-space { border-image-repeat: stretch space }
.repeat-stretch { border-image-repeat: repeat stretch }
.repeat-repeat { border-image-repeat: repeat repeat }
.repeat-round { border-image-repeat: repeat round }
.repeat-space { border-image-repeat: repeat space }
.round-stretch { border-image-repeat: round stretch }
.round-repeat { border-image-repeat: round repeat }
.round-round { border-image-repeat: round round }
.round-space { border-image-repeat: round space }
.space-stretch { border-image-repeat: space stretch }
.space-repeat { border-image-repeat: space repeat }
.space-round { border-image-repeat: space round }
.space-space { border-image-repeat: space space }
#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;
}
#yellow-3-round {
background-image: url("border-image-3-balls-yellow-squished.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;
}
#green-3-round {
background-image: url("border-image-3-balls-green-squished.png");
background-color: black;
}

File diff suppressed because it is too large Load Diff

View File

@ -1,232 +0,0 @@
#!/bin/bash
cat << EOF
<?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="GtkFixed" id="fixed1">
<property name="visible">True</property>
<property name="can_focus">False</property>
EOF
y=0
for vrepeat in stretch repeat round space; do
x=0
for hrepeat in stretch repeat round space; do
for side in 0 1; do
case $hrepeat in
"stretch")
cat << EOF
<child>
<object class="GtkToolbar" id="toolbar-$hrepeat-$vrepeat-hstretch$side">
<property name="name">yellow</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 \* 100 + 20`</property>
<property name="y">`expr $y \* 100 + $side \* 72`</property>
</packing>
</child>
EOF
;;
"repeat")
cat << EOF
<child>
<object class="GtkToolbar" id="toolbar-$hrepeat-$vrepeat-hrepeat$side">
<property name="name">yellow-3</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 \* 100 + 16`</property>
<property name="y">`expr $y \* 100 + $side \* 72`</property>
</packing>
</child>
EOF
;;
"round")
cat << EOF
<child>
<object class="GtkToolbar" id="toolbar-$hrepeat-$vrepeat-hround$side">
<property name="name">yellow-3-round</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 \* 100 + 20`</property>
<property name="y">`expr $y \* 100 + $side \* 72`</property>
</packing>
</child>
EOF
;;
"space")
cat << EOF
<child>
<object class="GtkToolbar" id="toolbar-$hrepeat-$vrepeat-hspace0$side">
<property name="name">yellow</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 \* 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">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 \* 100 + 48`</property>
<property name="y">`expr $y \* 100 + $side \* 72`</property>
</packing>
</child>
EOF
esac
case $vrepeat in
"stretch")
cat << EOF
<child>
<object class="GtkToolbar" id="toolbar-$hrepeat-$vrepeat-vstretch$side">
<property name="name">green</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 \* 100 + $side \* 72`</property>
<property name="y">`expr $y \* 100 + 20`</property>
</packing>
</child>
EOF
;;
"repeat")
cat << EOF
<child>
<object class="GtkToolbar" id="toolbar-$hrepeat-$vrepeat-vrepeat$side">
<property name="name">green-3</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 \* 100 + $side \* 72`</property>
<property name="y">`expr $y \* 100 + 16`</property>
</packing>
</child>
EOF
;;
"round")
cat << EOF
<child>
<object class="GtkToolbar" id="toolbar-$hrepeat-$vrepeat-vround$side">
<property name="name">green-3-round</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 \* 100 + $side \* 72`</property>
<property name="y">`expr $y \* 100 + 20`</property>
</packing>
</child>
EOF
;;
"space")
cat << EOF
<child>
<object class="GtkToolbar" id="toolbar-$hrepeat-$vrepeat-vspace0$side">
<property name="name">green</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 \* 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">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 \* 100 + $side \* 72`</property>
<property name="y">`expr $y \* 100 + 48`</property>
</packing>
</child>
EOF
esac
done
for ycorner in 0 1; do
for xcorner in 0 1; do
cat << EOF
<child>
<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>
<property name="show_arrow">False</property>
</object>
<packing>
<property name="x">`expr $x \* 100 + $xcorner \* 72`</property>
<property name="y">`expr $y \* 100 + $ycorner \* 72`</property>
</packing>
</child>
EOF
done
done
x=`expr $x + 1`
done
y=`expr $y + 1`
done
cat << EOF
</object>
</child>
</object>
</interface>
EOF

View File

@ -1,288 +0,0 @@
<?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="GtkGrid" id="grid2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="row_spacing">8</property>
<property name="column_spacing">8</property>
<child>
<object class="GtkButton" id="eventbox1">
<property name="width_request">92</property>
<property name="height_request">92</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<style>
<class name="stretch-stretch" />
</style>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="eventbox2">
<property name="width_request">92</property>
<property name="height_request">92</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<style>
<class name="stretch-repeat" />
</style>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="eventbox3">
<property name="width_request">92</property>
<property name="height_request">92</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<style>
<class name="stretch-round" />
</style>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">2</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="eventbox4">
<property name="width_request">92</property>
<property name="height_request">92</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<style>
<class name="stretch-space" />
</style>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">3</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="eventbox5">
<property name="width_request">92</property>
<property name="height_request">92</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<style>
<class name="repeat-stretch" />
</style>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="eventbox6">
<property name="width_request">92</property>
<property name="height_request">92</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<style>
<class name="repeat-repeat" />
</style>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="eventbox7">
<property name="width_request">92</property>
<property name="height_request">92</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<style>
<class name="repeat-round" />
</style>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">2</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="eventbox8">
<property name="width_request">92</property>
<property name="height_request">92</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<style>
<class name="repeat-space" />
</style>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">3</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="eventbox9">
<property name="width_request">92</property>
<property name="height_request">92</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<style>
<class name="round-stretch" />
</style>
</object>
<packing>
<property name="left_attach">2</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="eventbox10">
<property name="width_request">92</property>
<property name="height_request">92</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<style>
<class name="round-repeat" />
</style>
</object>
<packing>
<property name="left_attach">2</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="eventbox11">
<property name="width_request">92</property>
<property name="height_request">92</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<style>
<class name="round-round" />
</style>
</object>
<packing>
<property name="left_attach">2</property>
<property name="top_attach">2</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="eventbox12">
<property name="width_request">92</property>
<property name="height_request">92</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<style>
<class name="round-space" />
</style>
</object>
<packing>
<property name="left_attach">2</property>
<property name="top_attach">3</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="eventbox13">
<property name="width_request">92</property>
<property name="height_request">92</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<style>
<class name="space-stretch" />
</style>
</object>
<packing>
<property name="left_attach">3</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="eventbox14">
<property name="width_request">92</property>
<property name="height_request">92</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<style>
<class name="space-repeat" />
</style>
</object>
<packing>
<property name="left_attach">3</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="eventbox15">
<property name="width_request">92</property>
<property name="height_request">92</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<style>
<class name="space-round" />
</style>
</object>
<packing>
<property name="left_attach">3</property>
<property name="top_attach">2</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="eventbox16">
<property name="width_request">92</property>
<property name="height_request">92</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<style>
<class name="space-space" />
</style>
</object>
<packing>
<property name="left_attach">3</property>
<property name="top_attach">3</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
</object>
</child>
</object>
</interface>