[gtk+/quartz-integration: 291/563] reftests: Use an offscreen window to avoid artifacts



commit 90b6df6ac7c40d8c352d52aeff8934d64c6840e3
Author: Benjamin Otte <otte redhat com>
Date:   Tue Jul 5 15:28:18 2011 +0200

    reftests: Use an offscreen window to avoid artifacts
    
    When tests are larger than the screen size and no compositing is
    enabled, the window will be clipped to the screen size and all areas
    outside of the screen have undefined contents.
    
    To avoid this, we can use an offscreen window.

 tests/reftests/label-sizing.ref.ui |    2 +-
 tests/reftests/label-sizing.ui     |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/reftests/label-sizing.ref.ui b/tests/reftests/label-sizing.ref.ui
index 7d42ad2..2de71a4 100644
--- a/tests/reftests/label-sizing.ref.ui
+++ b/tests/reftests/label-sizing.ref.ui
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <interface>
   <!-- interface-requires gtk+ 3.0 -->
-  <object class="GtkWindow" id="window1">
+  <object class="GtkOffscreenWindow" id="window1">
     <property name="can_focus">False</property>
     <property name="type">popup</property>
     <child>
diff --git a/tests/reftests/label-sizing.ui b/tests/reftests/label-sizing.ui
index 3682291..9031bfe 100644
--- a/tests/reftests/label-sizing.ui
+++ b/tests/reftests/label-sizing.ui
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <interface>
   <!-- interface-requires gtk+ 3.0 -->
-  <object class="GtkWindow" id="window1">
+  <object class="GtkOffscreenWindow" id="window1">
     <property name="can_focus">False</property>
     <property name="type">popup</property>
     <child>



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