[gtk/modern-testsuite] testuite: Add a test for bottom-right border render failure
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/modern-testsuite] testuite: Add a test for bottom-right border render failure
- Date: Thu, 16 Sep 2021 00:30:05 +0000 (UTC)
commit 596f437892ba1ffadda2fbbc32e2b145f7cde1c6
Author: Benjamin Otte <otte redhat com>
Date: Thu Sep 16 02:28:56 2021 +0200
testuite: Add a test for bottom-right border render failure
When a border node is painted with just the bottom and right sides, the
bottom right corner doesn't get drawn.
testsuite/gsk/compare/border-bottom-right.node | 5 +++++
testsuite/gsk/compare/border-bottom-right.png | Bin 0 -> 103 bytes
testsuite/gsk/meson.build | 1 +
3 files changed, 6 insertions(+)
---
diff --git a/testsuite/gsk/compare/border-bottom-right.node b/testsuite/gsk/compare/border-bottom-right.node
new file mode 100644
index 0000000000..d71790a4f7
--- /dev/null
+++ b/testsuite/gsk/compare/border-bottom-right.node
@@ -0,0 +1,5 @@
+border {
+ colors: red;
+ outline: 0 0 20 20;
+ widths: 0 10 10 0;
+}
diff --git a/testsuite/gsk/compare/border-bottom-right.png b/testsuite/gsk/compare/border-bottom-right.png
new file mode 100644
index 0000000000..579f7efeb2
Binary files /dev/null and b/testsuite/gsk/compare/border-bottom-right.png differ
diff --git a/testsuite/gsk/meson.build b/testsuite/gsk/meson.build
index 5ba5f73520..a857646752 100644
--- a/testsuite/gsk/meson.build
+++ b/testsuite/gsk/meson.build
@@ -23,6 +23,7 @@ compare_render_tests = [
'blend-difference',
'blend-invisible-child',
'blend-normal',
+ 'border-bottom-right',
'borders-rotated',
'borders-scaled',
'clip-coordinates-2d',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]