forked from AuroraMiddleware/gtk
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:
parent
0e26e95b00
commit
70fb29e81a
@ -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',
|
||||
|
40
testsuite/reftests/partial-rounded-border.css
Normal file
40
testsuite/reftests/partial-rounded-border.css
Normal 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;
|
||||
}
|
47
testsuite/reftests/partial-rounded-border.ref.ui
Normal file
47
testsuite/reftests/partial-rounded-border.ref.ui
Normal 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>
|
50
testsuite/reftests/partial-rounded-border.ui
Normal file
50
testsuite/reftests/partial-rounded-border.ui
Normal 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>
|
Loading…
Reference in New Issue
Block a user