mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 13:11:13 +00:00
reftests: Add center-center reftests without GtkOverlay
This commit is contained in:
parent
7741df9963
commit
4de5d225db
@ -0,0 +1,15 @@
|
||||
* {
|
||||
all: unset;
|
||||
background-color: mintcream;
|
||||
}
|
||||
|
||||
picture {
|
||||
background-color: firebrick;
|
||||
}
|
||||
|
||||
#reference {
|
||||
background-image: image(lime);
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-size: 100px 100px;
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<object class="GtkWindow">
|
||||
<property name="width_request">100</property>
|
||||
<property name="height_request">200</property>
|
||||
<property name="name">reference</property>
|
||||
<property name="decorated">0</property>
|
||||
</object>
|
||||
</interface>
|
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<object class="GtkWindow">
|
||||
<property name="default-width">100</property>
|
||||
<property name="default-height">200</property>
|
||||
<property name="decorated">0</property>
|
||||
<child>
|
||||
<object class="GtkPicture">
|
||||
<property name="paintable">green-100x100.png</property>
|
||||
<property name="keep-aspect-ratio">0</property>
|
||||
<property name="can-shrink">1</property>
|
||||
<property name="halign">center</property>
|
||||
<property name="valign">center</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
@ -0,0 +1,15 @@
|
||||
* {
|
||||
all: unset;
|
||||
background-color: mintcream;
|
||||
}
|
||||
|
||||
picture {
|
||||
background-color: firebrick;
|
||||
}
|
||||
|
||||
#reference {
|
||||
background-image: image(lime);
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-size: 100px 100px;
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<object class="GtkWindow">
|
||||
<property name="width_request">200</property>
|
||||
<property name="height_request">100</property>
|
||||
<property name="name">reference</property>
|
||||
<property name="decorated">0</property>
|
||||
</object>
|
||||
</interface>
|
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<object class="GtkWindow">
|
||||
<property name="default-width">200</property>
|
||||
<property name="default-height">100</property>
|
||||
<property name="decorated">0</property>
|
||||
<child>
|
||||
<object class="GtkPicture">
|
||||
<property name="paintable">green-100x100.png</property>
|
||||
<property name="keep-aspect-ratio">0</property>
|
||||
<property name="can-shrink">1</property>
|
||||
<property name="halign">center</property>
|
||||
<property name="valign">center</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
@ -0,0 +1,15 @@
|
||||
* {
|
||||
all: unset;
|
||||
background-color: mintcream;
|
||||
}
|
||||
|
||||
picture {
|
||||
background-color: firebrick;
|
||||
}
|
||||
|
||||
#reference {
|
||||
background-image: image(lime);
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-size: 100px 100px;
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<object class="GtkWindow">
|
||||
<property name="width_request">100</property>
|
||||
<property name="height_request">200</property>
|
||||
<property name="name">reference</property>
|
||||
<property name="decorated">0</property>
|
||||
</object>
|
||||
</interface>
|
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<object class="GtkWindow">
|
||||
<property name="default-width">100</property>
|
||||
<property name="default-height">200</property>
|
||||
<property name="decorated">0</property>
|
||||
<child>
|
||||
<object class="GtkPicture">
|
||||
<property name="paintable">green-150x150.png</property>
|
||||
<property name="keep-aspect-ratio">0</property>
|
||||
<property name="can-shrink">1</property>
|
||||
<property name="halign">center</property>
|
||||
<property name="valign">center</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
@ -0,0 +1,15 @@
|
||||
* {
|
||||
all: unset;
|
||||
background-color: mintcream;
|
||||
}
|
||||
|
||||
picture {
|
||||
background-color: firebrick;
|
||||
}
|
||||
|
||||
#reference {
|
||||
background-image: image(lime);
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-size: 150px 150px;
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<object class="GtkWindow">
|
||||
<property name="width_request">200</property>
|
||||
<property name="height_request">100</property>
|
||||
<property name="name">reference</property>
|
||||
<property name="decorated">0</property>
|
||||
</object>
|
||||
</interface>
|
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<object class="GtkWindow">
|
||||
<property name="default-width">200</property>
|
||||
<property name="default-height">100</property>
|
||||
<property name="decorated">0</property>
|
||||
<child>
|
||||
<object class="GtkPicture">
|
||||
<property name="paintable">green-150x150.png</property>
|
||||
<property name="keep-aspect-ratio">0</property>
|
||||
<property name="can-shrink">1</property>
|
||||
<property name="halign">center</property>
|
||||
<property name="valign">center</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
@ -0,0 +1,15 @@
|
||||
* {
|
||||
all: unset;
|
||||
background-color: mintcream;
|
||||
}
|
||||
|
||||
picture {
|
||||
background-color: firebrick;
|
||||
}
|
||||
|
||||
#reference {
|
||||
background-image: image(lime);
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-size: 100px 100px;
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<object class="GtkWindow">
|
||||
<property name="width_request">100</property>
|
||||
<property name="height_request">200</property>
|
||||
<property name="name">reference</property>
|
||||
<property name="decorated">0</property>
|
||||
</object>
|
||||
</interface>
|
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<object class="GtkWindow">
|
||||
<property name="default-width">100</property>
|
||||
<property name="default-height">200</property>
|
||||
<property name="decorated">0</property>
|
||||
<child>
|
||||
<object class="GtkPicture">
|
||||
<property name="paintable">green-200x200.png</property>
|
||||
<property name="keep-aspect-ratio">0</property>
|
||||
<property name="can-shrink">1</property>
|
||||
<property name="halign">center</property>
|
||||
<property name="valign">center</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
@ -0,0 +1,15 @@
|
||||
* {
|
||||
all: unset;
|
||||
background-color: mintcream;
|
||||
}
|
||||
|
||||
picture {
|
||||
background-color: firebrick;
|
||||
}
|
||||
|
||||
#reference {
|
||||
background-image: image(lime);
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-size: 200px 200px;
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<object class="GtkWindow">
|
||||
<property name="width_request">200</property>
|
||||
<property name="height_request">100</property>
|
||||
<property name="name">reference</property>
|
||||
<property name="decorated">0</property>
|
||||
</object>
|
||||
</interface>
|
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<object class="GtkWindow">
|
||||
<property name="default-width">200</property>
|
||||
<property name="default-height">100</property>
|
||||
<property name="decorated">0</property>
|
||||
<child>
|
||||
<object class="GtkPicture">
|
||||
<property name="paintable">green-200x200.png</property>
|
||||
<property name="keep-aspect-ratio">0</property>
|
||||
<property name="can-shrink">1</property>
|
||||
<property name="halign">center</property>
|
||||
<property name="valign">center</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
@ -0,0 +1,15 @@
|
||||
* {
|
||||
all: unset;
|
||||
background-color: mintcream;
|
||||
}
|
||||
|
||||
picture {
|
||||
background-color: firebrick;
|
||||
}
|
||||
|
||||
#reference {
|
||||
background-image: image(lime);
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-size: 20px 20px;
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<object class="GtkWindow">
|
||||
<property name="width_request">100</property>
|
||||
<property name="height_request">200</property>
|
||||
<property name="name">reference</property>
|
||||
<property name="decorated">0</property>
|
||||
</object>
|
||||
</interface>
|
17
testsuite/reftests/center-center-20x20-picture-in-100x200.ui
Normal file
17
testsuite/reftests/center-center-20x20-picture-in-100x200.ui
Normal file
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<object class="GtkWindow">
|
||||
<property name="default-width">100</property>
|
||||
<property name="default-height">200</property>
|
||||
<property name="decorated">0</property>
|
||||
<child>
|
||||
<object class="GtkPicture">
|
||||
<property name="paintable">green-20x20.png</property>
|
||||
<property name="keep-aspect-ratio">0</property>
|
||||
<property name="can-shrink">1</property>
|
||||
<property name="halign">center</property>
|
||||
<property name="valign">center</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
@ -0,0 +1,15 @@
|
||||
* {
|
||||
all: unset;
|
||||
background-color: mintcream;
|
||||
}
|
||||
|
||||
picture {
|
||||
background-color: firebrick;
|
||||
}
|
||||
|
||||
#reference {
|
||||
background-image: image(lime);
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-size: 20px 20px;
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<object class="GtkWindow">
|
||||
<property name="width_request">200</property>
|
||||
<property name="height_request">100</property>
|
||||
<property name="name">reference</property>
|
||||
<property name="decorated">0</property>
|
||||
</object>
|
||||
</interface>
|
17
testsuite/reftests/center-center-20x20-picture-in-200x100.ui
Normal file
17
testsuite/reftests/center-center-20x20-picture-in-200x100.ui
Normal file
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<object class="GtkWindow">
|
||||
<property name="default-width">200</property>
|
||||
<property name="default-height">100</property>
|
||||
<property name="decorated">0</property>
|
||||
<child>
|
||||
<object class="GtkPicture">
|
||||
<property name="paintable">green-20x20.png</property>
|
||||
<property name="keep-aspect-ratio">0</property>
|
||||
<property name="can-shrink">1</property>
|
||||
<property name="halign">center</property>
|
||||
<property name="valign">center</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
@ -0,0 +1,15 @@
|
||||
* {
|
||||
all: unset;
|
||||
background-color: mintcream;
|
||||
}
|
||||
|
||||
picture {
|
||||
background-color: firebrick;
|
||||
}
|
||||
|
||||
#reference {
|
||||
background-image: image(lime);
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-size: 100px 100px;
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<object class="GtkWindow">
|
||||
<property name="width_request">100</property>
|
||||
<property name="height_request">200</property>
|
||||
<property name="name">reference</property>
|
||||
<property name="decorated">0</property>
|
||||
</object>
|
||||
</interface>
|
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<object class="GtkWindow">
|
||||
<property name="default-width">100</property>
|
||||
<property name="default-height">200</property>
|
||||
<property name="decorated">0</property>
|
||||
<child>
|
||||
<object class="GtkPicture">
|
||||
<property name="paintable">green-300x300.png</property>
|
||||
<property name="keep-aspect-ratio">0</property>
|
||||
<property name="can-shrink">1</property>
|
||||
<property name="halign">center</property>
|
||||
<property name="valign">center</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
@ -0,0 +1,15 @@
|
||||
* {
|
||||
all: unset;
|
||||
background-color: mintcream;
|
||||
}
|
||||
|
||||
picture {
|
||||
background-color: firebrick;
|
||||
}
|
||||
|
||||
#reference {
|
||||
background-image: image(lime);
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-size: 300px 300px;
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<object class="GtkWindow">
|
||||
<property name="width_request">200</property>
|
||||
<property name="height_request">100</property>
|
||||
<property name="name">reference</property>
|
||||
<property name="decorated">0</property>
|
||||
</object>
|
||||
</interface>
|
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<object class="GtkWindow">
|
||||
<property name="default-width">200</property>
|
||||
<property name="default-height">100</property>
|
||||
<property name="decorated">0</property>
|
||||
<child>
|
||||
<object class="GtkPicture">
|
||||
<property name="paintable">green-300x300.png</property>
|
||||
<property name="keep-aspect-ratio">0</property>
|
||||
<property name="can-shrink">1</property>
|
||||
<property name="halign">center</property>
|
||||
<property name="valign">center</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
@ -172,35 +172,65 @@ testdata = [
|
||||
'box-shadow-with-blend-mode.ui',
|
||||
'button-wrapping.ui',
|
||||
'button-wrapping.ref.ui',
|
||||
'center-center-100x100-picture-in-100x200.css',
|
||||
'center-center-100x100-picture-in-100x200-overlay.css',
|
||||
'center-center-100x100-picture-in-100x200.ref.ui',
|
||||
'center-center-100x100-picture-in-100x200-overlay.ref.ui',
|
||||
'center-center-100x100-picture-in-100x200.ui',
|
||||
'center-center-100x100-picture-in-100x200-overlay.ui',
|
||||
'center-center-100x100-picture-in-200x100.css',
|
||||
'center-center-100x100-picture-in-200x100-overlay.css',
|
||||
'center-center-100x100-picture-in-200x100.ref.ui',
|
||||
'center-center-100x100-picture-in-200x100-overlay.ref.ui',
|
||||
'center-center-100x100-picture-in-200x100.ui',
|
||||
'center-center-100x100-picture-in-200x100-overlay.ui',
|
||||
'center-center-150x150-picture-in-100x200.css',
|
||||
'center-center-150x150-picture-in-100x200-overlay.css',
|
||||
'center-center-150x150-picture-in-100x200.ref.ui',
|
||||
'center-center-150x150-picture-in-100x200-overlay.ref.ui',
|
||||
'center-center-150x150-picture-in-100x200.ui',
|
||||
'center-center-150x150-picture-in-100x200-overlay.ui',
|
||||
'center-center-150x150-picture-in-200x100.css',
|
||||
'center-center-150x150-picture-in-200x100-overlay.css',
|
||||
'center-center-150x150-picture-in-200x100.ref.ui',
|
||||
'center-center-150x150-picture-in-200x100-overlay.ref.ui',
|
||||
'center-center-150x150-picture-in-200x100.ui',
|
||||
'center-center-150x150-picture-in-200x100-overlay.ui',
|
||||
'center-center-200x200-picture-in-100x200.css',
|
||||
'center-center-200x200-picture-in-100x200-overlay.css',
|
||||
'center-center-200x200-picture-in-100x200.ref.ui',
|
||||
'center-center-200x200-picture-in-100x200-overlay.ref.ui',
|
||||
'center-center-200x200-picture-in-100x200.ui',
|
||||
'center-center-200x200-picture-in-100x200-overlay.ui',
|
||||
'center-center-200x200-picture-in-200x100.css',
|
||||
'center-center-200x200-picture-in-200x100-overlay.css',
|
||||
'center-center-200x200-picture-in-200x100.ref.ui',
|
||||
'center-center-200x200-picture-in-200x100-overlay.ref.ui',
|
||||
'center-center-200x200-picture-in-200x100.ui',
|
||||
'center-center-200x200-picture-in-200x100-overlay.ui',
|
||||
'center-center-20x20-picture-in-100x200.css',
|
||||
'center-center-20x20-picture-in-100x200-overlay.css',
|
||||
'center-center-20x20-picture-in-100x200.ref.ui',
|
||||
'center-center-20x20-picture-in-100x200-overlay.ref.ui',
|
||||
'center-center-20x20-picture-in-100x200.ui',
|
||||
'center-center-20x20-picture-in-100x200-overlay.ui',
|
||||
'center-center-20x20-picture-in-200x100.css',
|
||||
'center-center-20x20-picture-in-200x100-overlay.css',
|
||||
'center-center-20x20-picture-in-200x100.ref.ui',
|
||||
'center-center-20x20-picture-in-200x100-overlay.ref.ui',
|
||||
'center-center-20x20-picture-in-200x100.ui',
|
||||
'center-center-20x20-picture-in-200x100-overlay.ui',
|
||||
'center-center-300x300-picture-in-100x200.css',
|
||||
'center-center-300x300-picture-in-100x200-overlay.css',
|
||||
'center-center-300x300-picture-in-100x200.ref.ui',
|
||||
'center-center-300x300-picture-in-100x200-overlay.ref.ui',
|
||||
'center-center-300x300-picture-in-100x200.ui',
|
||||
'center-center-300x300-picture-in-100x200-overlay.ui',
|
||||
'center-center-300x300-picture-in-200x100.css',
|
||||
'center-center-300x300-picture-in-200x100-overlay.css',
|
||||
'center-center-300x300-picture-in-200x100.ref.ui',
|
||||
'center-center-300x300-picture-in-200x100-overlay.ref.ui',
|
||||
'center-center-300x300-picture-in-200x100.ui',
|
||||
'center-center-300x300-picture-in-200x100-overlay.ui',
|
||||
'centerlayout-invisible-child.css',
|
||||
'centerlayout-invisible-child.ref.ui',
|
||||
|
Loading…
Reference in New Issue
Block a user