[gtk/cairo-borders-fixage: 1/2] reftests: Add a reftest for rendering failure
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/cairo-borders-fixage: 1/2] reftests: Add a reftest for rendering failure
- Date: Fri, 19 Apr 2019 01:42:45 +0000 (UTC)
commit 70fb29e81af3bd6cd26805ef6824170f0f6108e4
Author: Benjamin Otte <otte redhat com>
Date: Fri Apr 19 02:28:37 2019 +0200
reftests: Add a reftest for rendering failure
c18d2872f292607c921c959e6e97c4d6635bdfd2 introduced a misrendering in
the Cairo fallback rendering code while fixing another one.
This test exposes that problem.
Related: !756
testsuite/reftests/meson.build | 3 ++
testsuite/reftests/partial-rounded-border.css | 40 +++++++++++++++++++
testsuite/reftests/partial-rounded-border.ref.ui | 47 ++++++++++++++++++++++
testsuite/reftests/partial-rounded-border.ui | 50 ++++++++++++++++++++++++
4 files changed, 140 insertions(+)
---
diff --git a/testsuite/reftests/meson.build b/testsuite/reftests/meson.build
index 998d76349d..9845b42e06 100644
--- a/testsuite/reftests/meson.build
+++ b/testsuite/reftests/meson.build
@@ -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',
diff --git a/testsuite/reftests/partial-rounded-border.css b/testsuite/reftests/partial-rounded-border.css
new file mode 100644
index 0000000000..404f3017a8
--- /dev/null
+++ b/testsuite/reftests/partial-rounded-border.css
@@ -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;
+}
diff --git a/testsuite/reftests/partial-rounded-border.ref.ui
b/testsuite/reftests/partial-rounded-border.ref.ui
new file mode 100644
index 0000000000..04bd817a67
--- /dev/null
+++ b/testsuite/reftests/partial-rounded-border.ref.ui
@@ -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>
diff --git a/testsuite/reftests/partial-rounded-border.ui b/testsuite/reftests/partial-rounded-border.ui
new file mode 100644
index 0000000000..c0d272463c
--- /dev/null
+++ b/testsuite/reftests/partial-rounded-border.ui
@@ -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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]