reftests: Add a reftest for rendering failure

c18d2872f2 introduced a misrendering in
the Cairo fallback rendering code while fixing another one.

This test exposes that problem.

Related: !756
This commit is contained in:
Benjamin Otte 2019-04-19 02:28:37 +02:00
parent 0e26e95b00
commit 70fb29e81a
4 changed files with 140 additions and 0 deletions

View File

@ -325,6 +325,9 @@ testdata = [
'paned-undersized.css',
'paned-undersized.ref.ui',
'paned-undersized.ui',
'partial-rounded-border.css',
'partial-rounded-border.ref.ui',
'partial-rounded-border.ui',
'picture-load-invalid-file.ui',
'picture-load-invalid-file.ref.ui',
'pseudoclass-on-box.css',

View File

@ -0,0 +1,40 @@
* {
all: unset;
}
.background {
background-color: red;
}
button {
padding: 10px;
}
#topleft {
border-top-left-radius: 20px;
border-left: 5px solid blue;
border-top: 5px solid blue;
}
#topright {
border-top-right-radius: 20px;
border-right: 5px solid blue;
border-top: 5px solid blue;
}
#bottomleft {
border-bottom-left-radius: 20px;
border-left: 5px solid blue;
border-bottom: 5px solid blue;
}
#bottomright {
border-bottom-right-radius: 20px;
border-right: 5px solid blue;
border-bottom: 5px solid blue;
}
#reference {
border: 5px solid blue;
border-radius: 20px;
}

View File

@ -0,0 +1,47 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<object class="GtkWindow">
<property name="type">popup</property>
<child>
<object class="GtkGrid">
<property name="name">reference</property>
<child>
<object class="GtkButton">
<property name="label">topleft</property>
<layout>
<property name="left-attach">0</property>
<property name="top-attach">0</property>
</layout>
</object>
</child>
<child>
<object class="GtkButton">
<property name="label">topright</property>
<layout>
<property name="left-attach">1</property>
<property name="top-attach">0</property>
</layout>
</object>
</child>
<child>
<object class="GtkButton">
<property name="label">bottomleft</property>
<layout>
<property name="left-attach">0</property>
<property name="top-attach">1</property>
</layout>
</object>
</child>
<child>
<object class="GtkButton">
<property name="label">bottomright</property>
<layout>
<property name="left-attach">1</property>
<property name="top-attach">1</property>
</layout>
</object>
</child>
</object>
</child>
</object>
</interface>

View File

@ -0,0 +1,50 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<object class="GtkWindow">
<property name="type">popup</property>
<child>
<object class="GtkGrid">
<child>
<object class="GtkButton">
<property name="label">topleft</property>
<property name="name">topleft</property>
<layout>
<property name="left-attach">0</property>
<property name="top-attach">0</property>
</layout>
</object>
</child>
<child>
<object class="GtkButton">
<property name="label">topright</property>
<property name="name">topright</property>
<layout>
<property name="left-attach">1</property>
<property name="top-attach">0</property>
</layout>
</object>
</child>
<child>
<object class="GtkButton">
<property name="label">bottomleft</property>
<property name="name">bottomleft</property>
<layout>
<property name="left-attach">0</property>
<property name="top-attach">1</property>
</layout>
</object>
</child>
<child>
<object class="GtkButton">
<property name="label">bottomright</property>
<property name="name">bottomright</property>
<layout>
<property name="left-attach">1</property>
<property name="top-attach">1</property>
</layout>
</object>
</child>
</object>
</child>
</object>
</interface>