[gtk+] reftests: Make textview-margins pass in make check
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] reftests: Make textview-margins pass in make check
- Date: Sun, 10 Aug 2014 11:48:01 +0000 (UTC)
commit 2d15c25d93d38c7101eb66f08214aac30c7b366b
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Aug 10 07:41:53 2014 -0400
reftests: Make textview-margins pass in make check
I found that setting margins to zero makes the textview clip
away some overshooting pixels. So, instead of a 0/10 split,
do this test with a 2/8 split of margins, to avoid the clipping
issue.
testsuite/reftests/textview-margins.ref.ui | 8 ++++----
testsuite/reftests/textview-margins.ui | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/testsuite/reftests/textview-margins.ref.ui b/testsuite/reftests/textview-margins.ref.ui
index f4bdfb0..2d1d449 100644
--- a/testsuite/reftests/textview-margins.ref.ui
+++ b/testsuite/reftests/textview-margins.ref.ui
@@ -14,10 +14,10 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="wrap_mode">word</property>
- <property name="margin_left">10</property>
- <property name="margin_right">10</property>
- <property name="left_margin">0</property>
- <property name="right_margin">0</property>
+ <property name="margin_start">8</property>
+ <property name="margin_end">8</property>
+ <property name="left_margin">2</property>
+ <property name="right_margin">2</property>
<property name="buffer">textbuffer1</property>
</object>
</child>
diff --git a/testsuite/reftests/textview-margins.ui b/testsuite/reftests/textview-margins.ui
index 040ca1a..9fd0487 100644
--- a/testsuite/reftests/textview-margins.ui
+++ b/testsuite/reftests/textview-margins.ui
@@ -14,10 +14,10 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="wrap_mode">word</property>
- <property name="margin_left">0</property>
- <property name="margin_right">0</property>
- <property name="left_margin">10</property>
- <property name="right_margin">10</property>
+ <property name="margin_start">2</property>
+ <property name="margin_end">2</property>
+ <property name="left_margin">8</property>
+ <property name="right_margin">8</property>
<property name="buffer">textbuffer1</property>
</object>
</child>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]