diff options
author | Benjamin Otte <otte@redhat.com> | 2019-03-27 03:41:13 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2019-03-29 09:56:52 +0100 |
commit | e3dbf8d524d76a4d46ef823320fb58fbebc3c0a5 (patch) | |
tree | 88ee393a45f4c7fe37cb23d054fd98f59365769d | |
parent | 5dd5ff52366b132846300aca2fd8cfc7b742024b (diff) | |
download | gtk+-e3dbf8d524d76a4d46ef823320fb58fbebc3c0a5.tar.gz |
reftests: Fix unresolvable.ui test
- Make sure we draw something
- Don't use -gtk-gradient() but linear-gradient instead
-rw-r--r-- | testsuite/reftests/unresolvable.css | 9 | ||||
-rw-r--r-- | testsuite/reftests/unresolvable.ref.ui | 12 | ||||
-rw-r--r-- | testsuite/reftests/unresolvable.ui | 9 |
3 files changed, 18 insertions, 12 deletions
diff --git a/testsuite/reftests/unresolvable.css b/testsuite/reftests/unresolvable.css index 94ef135351..79c48b0c9c 100644 --- a/testsuite/reftests/unresolvable.css +++ b/testsuite/reftests/unresolvable.css @@ -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 { diff --git a/testsuite/reftests/unresolvable.ref.ui b/testsuite/reftests/unresolvable.ref.ui index 973a68ffd4..ac585215e6 100644 --- a/testsuite/reftests/unresolvable.ref.ui +++ b/testsuite/reftests/unresolvable.ref.ui @@ -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> diff --git a/testsuite/reftests/unresolvable.ui b/testsuite/reftests/unresolvable.ui index 2f24fa197b..1b46903939 100644 --- a/testsuite/reftests/unresolvable.ui +++ b/testsuite/reftests/unresolvable.ui @@ -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> |