forked from AuroraMiddleware/gtk
Add a reftest for box flipping
Test that a horizontal box changes the order of its
children in RTL, and that widget margins flip start
and end.
This tests the fix in d89ff71819
.
This commit is contained in:
parent
d89ff71819
commit
bbfaacb598
23
testsuite/reftests/box-flip.css
Normal file
23
testsuite/reftests/box-flip.css
Normal file
@ -0,0 +1,23 @@
|
||||
@import "reset-to-defaults.css";
|
||||
|
||||
window {
|
||||
background-color: purple;
|
||||
}
|
||||
|
||||
#red {
|
||||
background-color: red;
|
||||
min-width: 100px;
|
||||
min-height: 100px;
|
||||
}
|
||||
|
||||
#yellow {
|
||||
background-color: yellow;
|
||||
min-width: 100px;
|
||||
min-height: 100px;
|
||||
}
|
||||
|
||||
#green {
|
||||
background-color: green;
|
||||
min-width: 100px;
|
||||
min-height: 100px;
|
||||
}
|
28
testsuite/reftests/box-flip.ref.ui
Normal file
28
testsuite/reftests/box-flip.ref.ui
Normal file
@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<object class="GtkWindow" id="window1">
|
||||
<property name="decorated">0</property>
|
||||
<property name="resizable">0</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<child>
|
||||
<object class="GtkDrawingArea">
|
||||
<property name="name">green</property>
|
||||
<property name="margin-end">50</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkDrawingArea">
|
||||
<property name="name">yellow</property>
|
||||
<property name="margin-end">10</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkDrawingArea">
|
||||
<property name="name">red</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
30
testsuite/reftests/box-flip.ui
Normal file
30
testsuite/reftests/box-flip.ui
Normal file
@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<object class="GtkWindow" id="window1">
|
||||
<property name="decorated">0</property>
|
||||
<property name="resizable">0</property>
|
||||
<signal name="map" handler="reftest:set_default_direction_rtl" swapped="no"/>
|
||||
<signal name="destroy" handler="reftest:set_default_direction_ltr" swapped="no"/>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<child>
|
||||
<object class="GtkDrawingArea">
|
||||
<property name="name">red</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkDrawingArea">
|
||||
<property name="name">yellow</property>
|
||||
<property name="margin-start">10</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkDrawingArea">
|
||||
<property name="margin-start">50</property>
|
||||
<property name="name">green</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
Loading…
Reference in New Issue
Block a user