mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-16 21:50:34 +00:00
reftests: Add a reftest for color resolving errors
This checks the fixes in the last two commits.
This commit is contained in:
parent
cbee390148
commit
0a82b79012
@ -62,6 +62,9 @@ EXTRA_DIST += \
|
||||
background-window-transparent.css \
|
||||
background-window-transparent.ref.ui \
|
||||
background-window-transparent.ui \
|
||||
bad-color-names.css \
|
||||
bad-color-names.ref.ui \
|
||||
bad-color-names.ui \
|
||||
reference-background-origin.png \
|
||||
border-color-default.css \
|
||||
border-color-default.ref.ui \
|
||||
|
11
tests/reftests/bad-color-names.css
Normal file
11
tests/reftests/bad-color-names.css
Normal file
@ -0,0 +1,11 @@
|
||||
@define-color nonexistant @idonotexist;
|
||||
|
||||
@define-color self @self;
|
||||
|
||||
@define-color cycle @cycle1;
|
||||
@define-color cycle1 @cycle2;
|
||||
@define-color cycle2 @cycle1;
|
||||
|
||||
.background {
|
||||
background: linear-gradient(to bottom, @nonexistant, @self, @cycle, @undefinedcolor);
|
||||
}
|
10
tests/reftests/bad-color-names.ref.ui
Normal file
10
tests/reftests/bad-color-names.ref.ui
Normal file
@ -0,0 +1,10 @@
|
||||
<?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>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="type">popup</property>
|
||||
</object>
|
||||
</interface>
|
10
tests/reftests/bad-color-names.ui
Normal file
10
tests/reftests/bad-color-names.ui
Normal file
@ -0,0 +1,10 @@
|
||||
<?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>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="type">popup</property>
|
||||
</object>
|
||||
</interface>
|
Loading…
Reference in New Issue
Block a user