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:
Benjamin Otte 2011-05-22 04:46:42 +02:00
parent ef51b5be76
commit 4d92835997
4 changed files with 53 additions and 0 deletions

View File

@ -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 \

View 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;
}

View 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>

View 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>