mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 19:00:08 +00:00
reftests: Add a reftest to check shorthands do work
Checks shorthands are properly unpacked in the CSS and that they indeed set all relevant properties. Or at least border-width does.
This commit is contained in:
parent
ef51b5be76
commit
4d92835997
@ -91,6 +91,9 @@ EXTRA_DIST += \
|
||||
quit-mnemonic.ui \
|
||||
rotated-layout.ref.ui \
|
||||
rotated-layout.ui \
|
||||
shorthand-entry-border.css \
|
||||
shorthand-entry-border.ref.ui \
|
||||
shorthand-entry-border.ui \
|
||||
simple.ref.ui \
|
||||
simple.ui \
|
||||
toplevel-vs-popup.ref.ui \
|
||||
|
21
tests/reftests/shorthand-entry-border.css
Normal file
21
tests/reftests/shorthand-entry-border.css
Normal file
@ -0,0 +1,21 @@
|
||||
* {
|
||||
engine: none;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
GtkWidget {
|
||||
border-right-width: 5;
|
||||
}
|
||||
|
||||
GtkEntry {
|
||||
border-width: 10 20;
|
||||
}
|
||||
|
||||
.entry {
|
||||
border-left-width: 10;
|
||||
border-right-width: 10;
|
||||
}
|
||||
|
||||
#reference {
|
||||
border-width: 10;
|
||||
}
|
15
tests/reftests/shorthand-entry-border.ref.ui
Normal file
15
tests/reftests/shorthand-entry-border.ref.ui
Normal 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>
|
||||
<child>
|
||||
<object class="GtkEntry" id="entry1">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="name">reference</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
14
tests/reftests/shorthand-entry-border.ui
Normal file
14
tests/reftests/shorthand-entry-border.ui
Normal 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="GtkEntry" id="entry1">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
Loading…
Reference in New Issue
Block a user