[gtk/modern-testsuite] reftests: Don't use 0.5 for color values
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/modern-testsuite] reftests: Don't use 0.5 for color values
- Date: Thu, 16 Sep 2021 18:28:32 +0000 (UTC)
commit 91377d58dcada2182f1ceba31a435d8a64ce4b97
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Sep 16 14:27:37 2021 -0400
reftests: Don't use 0.5 for color values
That is just asking for unfortunate rounding
differences. This fixes the label-attribute-preference
reftest.
testsuite/reftests/label-attribute-preference.ref.ui | 6 +++---
testsuite/reftests/label-attribute-preference.ui | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/testsuite/reftests/label-attribute-preference.ref.ui
b/testsuite/reftests/label-attribute-preference.ref.ui
index 6ef8fdc0cd..374a99bd75 100644
--- a/testsuite/reftests/label-attribute-preference.ref.ui
+++ b/testsuite/reftests/label-attribute-preference.ref.ui
@@ -6,12 +6,12 @@
<object class="GtkLabel" id="label1">
<property name="label" translatable="yes">Hello linky World</property>
<attributes>
- <attribute name="foreground" value="#000080000000" start="1" end="3"></attribute>
+ <attribute name="foreground" value="#000088880000" start="1" end="3"></attribute>
<attribute name="foreground" value="#ffff00000000" start="3" end="8"></attribute>
<attribute name="foreground" value="#0000ffff0000" start="8" end="9"></attribute>
<attribute name="foreground" value="#00000000ffff" start="9" end="10"></attribute>
- <attribute name="foreground" value="#ffff80008000" start="10" end="14"></attribute>
- <attribute name="foreground" value="#8000ffff8000" start="14" end="16"></attribute>
+ <attribute name="foreground" value="#ffff88888888" start="10" end="14"></attribute>
+ <attribute name="foreground" value="#8888ffff8888" start="14" end="16"></attribute>
<attribute name="underline" value="True" start="6" end="11"></attribute>
</attributes>
</object>
diff --git a/testsuite/reftests/label-attribute-preference.ui
b/testsuite/reftests/label-attribute-preference.ui
index 9f1f53d17c..216d7b2c4a 100644
--- a/testsuite/reftests/label-attribute-preference.ui
+++ b/testsuite/reftests/label-attribute-preference.ui
@@ -5,10 +5,10 @@
<child>
<object class="GtkLabel" id="label1">
<property name="use-markup">1</property>
- <property name="label" translatable="yes">H<span color="#008000">ell</span>o
<a href="http://example.com">l<span
color="#00FF00">in</span>ky</a> <span
color="#80FF80">Worl</span>d</property>
+ <property name="label" translatable="yes">H<span
color="#000088880000">ell</span>o <a href="http://example.com">l<span
color="#00FF00">in</span>ky</a> <span
color="#8888FFFF8888">Worl</span>d</property>
<attributes>
<attribute name="foreground" value="#ffff00000000" start="3" end="8"></attribute>
- <attribute name="foreground" value="#ffff80008000" start="10" end="14"></attribute>
+ <attribute name="foreground" value="#ffff88888888" start="10" end="14"></attribute>
</attributes>
</object>
</child>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]