reftests: Add a test for misrendering of transparent windows

If a widget with a GDK window is set to be transparent in the CSS, it
gets drawn as black instead. This test checks that the fix works.
This commit is contained in:
Benjamin Otte 2012-02-09 13:45:31 +01:00
parent 6d430ad713
commit 5e3c2524f8
4 changed files with 37 additions and 0 deletions

View File

@ -43,6 +43,9 @@ EXTRA_DIST += \
background-size-keywords.css \
background-size-keywords.ref.ui \
background-size-keywords.ui \
background-window-transparent.css \
background-window-transparent.ref.ui \
background-window-transparent.ui \
reference-background-origin.png \
border-color-default.css \
border-color-default.ref.ui \

View File

@ -0,0 +1,5 @@
@import "reset-to-defaults.css";
GtkWindow { background-color: green; }
#reference * { background-color: green; }

View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkWindow" id="window1">
<property name="can_focus">False</property>
<property name="type">popup</property>
<property name="name">reference</property>
<child>
<object class="GtkViewport" id="viewport1">
<property name="visible">True</property>
<property name="can_focus">True</property>
</object>
</child>
</object>
</interface>

View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkWindow" id="window1">
<property name="can_focus">False</property>
<property name="type">popup</property>
<child>
<object class="GtkViewport" id="viewport1">
<property name="visible">True</property>
<property name="can_focus">True</property>
</object>
</child>
</object>
</interface>