Merge branch 'gradient-hard-stop-test' into 'master'

Add a reftest for gradients with hard stops

See merge request GNOME/gtk!2371
This commit is contained in:
Matthias Clasen 2020-08-05 12:48:30 +00:00
commit 7c252e3830
4 changed files with 56 additions and 0 deletions

View File

@ -0,0 +1,17 @@
@import "reset-to-defaults.css";
window {
background-color: black;
}
#reference {
background: linear-gradient(red 50%, yellow 50%);
}
#red {
background-color: red;
}
#yellow {
background-color: yellow;
}

View File

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<object class="GtkWindow" id="window1">
<property name="decorated">0</property>
<property name="default_width">200</property>
<property name="default_height">200</property>
<child>
<object class="GtkBox">
<property name="orientation">vertical</property>
<child>
<object class="GtkBox">
<property name="hexpand">1</property>
<property name="vexpand">1</property>
<property name="name">red</property>
</object>
</child>
<child>
<object class="GtkBox">
<property name="hexpand">1</property>
<property name="vexpand">1</property>
<property name="name">yellow</property>
</object>
</child>
</object>
</child>
</object>
</interface>

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<object class="GtkWindow" id="window1">
<property name="decorated">0</property>
<property name="default_width">200</property>
<property name="default_height">200</property>
<property name="name">reference</property>
</object>
</interface>

View File

@ -223,6 +223,9 @@ testdata = [
'gtk-image-effect-inherit.css', 'gtk-image-effect-inherit.css',
'gtk-image-effect-inherit.ref.ui', 'gtk-image-effect-inherit.ref.ui',
'gtk-image-effect-inherit.ui', 'gtk-image-effect-inherit.ui',
'gradient-hard-stop.css',
'gradient-hard-stop.ref.ui',
'gradient-hard-stop.ui',
'green-20x20.png', 'green-20x20.png',
'grid-empty-with-spacing.ref.ui', 'grid-empty-with-spacing.ref.ui',
'grid-empty-with-spacing.ui', 'grid-empty-with-spacing.ui',