reftests: Fix unresolvable.ui test

- Make sure we draw something
- Don't use -gtk-gradient() but linear-gradient instead
This commit is contained in:
Benjamin Otte 2019-03-27 03:41:13 +01:00
parent 5dd5ff5236
commit e3dbf8d524
3 changed files with 18 additions and 12 deletions

View File

@ -1,12 +1,13 @@
@import "reset-to-defaults.css";
window {
background-color: black;
}
box {
background-color: @doesntexist;
box-shadow: @nonexistant 5px 5px;
border-image: -gtk-gradient(linear,
left top, left bottom,
from(@notaavailable),
to(@whatever)) 2;
border-image: linear-gradient(to top, @notaavailable, @whatever);
}
#reference {

View File

@ -1,11 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkWindow" id="window1">
<property name="width_request">10</property>
<property name="height_request">10</property>
<object class="GtkWindow">
<property name="can_focus">False</property>
<property name="type">popup</property>
<property name="name">reference</property>
<child>
<object class="GtkBox">
<property name="name">reference</property>
<property name="width_request">10</property>
<property name="height_request">10</property>
</object>
</child>
</object>
</interface>

View File

@ -1,13 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkWindow" id="window1">
<property name="width_request">10</property>
<property name="height_request">10</property>
<object class="GtkWindow">
<property name="can_focus">False</property>
<property name="type">popup</property>
<child>
<placeholder/>
<object class="GtkBox">
<property name="width_request">10</property>
<property name="height_request">10</property>
</object>
</child>
</object>
</interface>