[gtk/wip/otte/css: 20/20] reftests: Fix GtkFixed layout properties



commit 8f91b05e9f2ee3a5959db88f7f7cb0af28249f66
Author: Benjamin Otte <otte redhat com>
Date:   Fri Apr 12 06:48:28 2019 +0200

    reftests: Fix GtkFixed layout properties
    
    GtkFixed was still using "x" and "y", when it should have been using
    "position".

 testsuite/reftests/background-position.ref.ui   | 27 +++++---------
 testsuite/reftests/box-shadow-spec-inset.ref.ui | 48 +++++--------------------
 2 files changed, 17 insertions(+), 58 deletions(-)
---
diff --git a/testsuite/reftests/background-position.ref.ui b/testsuite/reftests/background-position.ref.ui
index 627a16f656..10d9ec9662 100644
--- a/testsuite/reftests/background-position.ref.ui
+++ b/testsuite/reftests/background-position.ref.ui
@@ -15,8 +15,7 @@
             <property name="receives_default">1</property>
             <property name="name">ref</property>
             <layout>
-              <property name="x">10</property>
-              <property name="y">10</property>
+              <property name="position">translate(10, 10)</property>
             </layout>
           </object>
         </child>
@@ -28,8 +27,7 @@
             <property name="receives_default">1</property>
             <property name="name">ref</property>
             <layout>
-              <property name="x">40</property>
-              <property name="y">10</property>
+              <property name="position">translate(40, 10)</property>
             </layout>
           </object>
         </child>
@@ -41,8 +39,7 @@
             <property name="receives_default">1</property>
             <property name="name">ref</property>
             <layout>
-              <property name="x">80</property>
-              <property name="y">20</property>
+              <property name="position">translate(80, 20)</property>
             </layout>
           </object>
         </child>
@@ -54,8 +51,7 @@
             <property name="receives_default">1</property>
             <property name="name">ref</property>
             <layout>
-              <property name="x">20</property>
-              <property name="y">60</property>
+              <property name="position">translate(20, 60)</property>
             </layout>
           </object>
         </child>
@@ -67,8 +63,7 @@
             <property name="receives_default">1</property>
             <property name="name">ref</property>
             <layout>
-              <property name="x">60</property>
-              <property name="y">40</property>
+              <property name="position">translate(60, 40)</property>
             </layout>
           </object>
         </child>
@@ -80,8 +75,7 @@
             <property name="receives_default">1</property>
             <property name="name">ref</property>
             <layout>
-              <property name="x">100</property>
-              <property name="y">50</property>
+              <property name="position">translate(100, 50)</property>
             </layout>
           </object>
         </child>
@@ -93,8 +87,7 @@
             <property name="receives_default">1</property>
             <property name="name">ref</property>
             <layout>
-              <property name="x">10</property>
-              <property name="y">90</property>
+              <property name="position">translate(10, 90)</property>
             </layout>
           </object>
         </child>
@@ -106,8 +99,7 @@
             <property name="receives_default">1</property>
             <property name="name">ref</property>
             <layout>
-              <property name="x">40</property>
-              <property name="y">90</property>
+              <property name="position">translate(40, 90)</property>
             </layout>
           </object>
         </child>
@@ -119,8 +111,7 @@
             <property name="receives_default">1</property>
             <property name="name">ref</property>
             <layout>
-              <property name="x">100</property>
-              <property name="y">100</property>
+              <property name="position">translate(100, 100)</property>
             </layout>
           </object>
         </child>
diff --git a/testsuite/reftests/box-shadow-spec-inset.ref.ui b/testsuite/reftests/box-shadow-spec-inset.ref.ui
index 9441593c48..1246a1c6ce 100644
--- a/testsuite/reftests/box-shadow-spec-inset.ref.ui
+++ b/testsuite/reftests/box-shadow-spec-inset.ref.ui
@@ -50,10 +50,6 @@
                   <class name="reference-background"/>
                   <class name="column1"/>
                 </style>
-                <layout>
-                  <property name="x">0</property>
-                  <property name="y">0</property>
-                </layout>
               </object>
             </child>
             <child>
@@ -65,8 +61,7 @@
                   <class name="reference-padding-radius"/>
                 </style>
                 <layout>
-                  <property name="x">5</property>
-                  <property name="y">5</property>
+                  <property name="position">translate(5, 5)</property>
                 </layout>
               </object>
             </child>
@@ -80,8 +75,7 @@
                   <class name="column1"/>
                 </style>
                 <layout>
-                  <property name="x">20</property>
-                  <property name="y">20</property>
+                  <property name="position">translate(20, 20)</property>
                 </layout>
               </object>
             </child>
@@ -93,10 +87,6 @@
                   <class name="reference-border"/>
                   <class name="column1"/>
                 </style>
-                <layout>
-                  <property name="x">0</property>
-                  <property name="y">0</property>
-                </layout>
               </object>
             </child>
             <layout>
@@ -118,10 +108,6 @@
                   <class name="reference-background"/>
                   <class name="column2"/>
                 </style>
-                <layout>
-                  <property name="x">0</property>
-                  <property name="y">0</property>
-                </layout>
               </object>
             </child>
             <child>
@@ -133,8 +119,7 @@
                   <class name="column2"/>
                 </style>
                 <layout>
-                  <property name="x">5</property>
-                  <property name="y">5</property>
+                  <property name="position">translate(5, 5)</property>
                 </layout>
               </object>
             </child>
@@ -147,8 +132,7 @@
                   <class name="column2"/>
                 </style>
                 <layout>
-                  <property name="x">20</property>
-                  <property name="y">20</property>
+                  <property name="position">translate(20, 20)</property>
                 </layout>
               </object>
             </child>
@@ -170,10 +154,6 @@
                   <class name="reference-background"/>
                   <class name="column1"/>
                 </style>
-                <layout>
-                  <property name="x">0</property>
-                  <property name="y">0</property>
-                </layout>
               </object>
             </child>
             <child>
@@ -185,8 +165,7 @@
                   <class name="reference-padding-radius"/>
                 </style>
                 <layout>
-                  <property name="x">5</property>
-                  <property name="y">5</property>
+                  <property name="position">translate(5, 5)</property>
                 </layout>
               </object>
             </child>
@@ -200,8 +179,7 @@
                   <class name="column1"/>
                 </style>
                 <layout>
-                  <property name="x">30</property>
-                  <property name="y">30</property>
+                  <property name="position">translate(30, 30)</property>
                 </layout>
               </object>
             </child>
@@ -213,10 +191,6 @@
                   <class name="reference-border"/>
                   <class name="column1"/>
                 </style>
-                <layout>
-                  <property name="x">0</property>
-                  <property name="y">0</property>
-                </layout>
               </object>
             </child>
             <layout>
@@ -238,10 +212,6 @@
                   <class name="reference-background"/>
                   <class name="column2"/>
                 </style>
-                <layout>
-                  <property name="x">0</property>
-                  <property name="y">0</property>
-                </layout>
               </object>
             </child>
             <child>
@@ -253,8 +223,7 @@
                   <class name="column2"/>
                 </style>
                 <layout>
-                  <property name="x">5</property>
-                  <property name="y">5</property>
+                  <property name="position">translate(5, 5)</property>
                 </layout>
               </object>
             </child>
@@ -267,8 +236,7 @@
                   <class name="column2"/>
                 </style>
                 <layout>
-                  <property name="x">30</property>
-                  <property name="y">30</property>
+                  <property name="position">translate(30, 30)</property>
                 </layout>
               </object>
             </child>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]