gtk2/testsuite/reftests
Matthias Clasen 883d5d8584 box: Remove the position child property
The position child property is problematic, since it
requires us to emit notification for all children when
inserting a child early in the list of children.

Remove the property from all ui files.
2019-01-23 19:30:47 -05:00
..
721800-0px-dotted-border.css
721800-0px-dotted-border.ref.ui
721800-0px-dotted-border.ui
actionbar.css
actionbar.ref.ui
actionbar.ui
align-expand.sh label: Remove angle property 2017-04-25 20:30:37 +02:00
animation-direction.c
animation-direction.css
animation-direction.ref.ui
animation-direction.ui
animation-fill-mode-iteration-count.css
animation-fill-mode-iteration-count.ref.ui
animation-fill-mode-iteration-count.ui
background-area.css
background-area.ref.ui Fix unittests 2016-10-18 00:34:41 +02:00
background-area.ui Fix unittests 2016-10-18 00:34:41 +02:00
background-blend-mode-clip-interaction.css css: An opaque background does not allow omitting push_group 2016-12-20 18:01:10 +01:00
background-blend-mode-clip-interaction.ref.ui css: An opaque background does not allow omitting push_group 2016-12-20 18:01:10 +01:00
background-blend-mode-clip-interaction.ui css: An opaque background does not allow omitting push_group 2016-12-20 18:01:10 +01:00
background-color-transparent.css
background-color-transparent.ref.ui Fix unittests 2016-10-18 00:34:41 +02:00
background-color-transparent.ui Fix unittests 2016-10-18 00:34:41 +02:00
background-image-multiple.css
background-image-multiple.ref.ui Fix unittests 2016-10-18 00:34:41 +02:00
background-image-multiple.ui Fix unittests 2016-10-18 00:34:41 +02:00
background-origin.css
background-origin.ref.ui Fix unittests 2016-10-18 00:34:41 +02:00
background-origin.ui Fix unittests 2016-10-18 00:34:41 +02:00
background-position-repeat-bg.png
background-position-repeat.css
background-position-repeat.ref.ui Fix unittests 2016-10-18 00:34:41 +02:00
background-position-repeat.ui Fix unittests 2016-10-18 00:34:41 +02:00
background-position-simple.css
background-position-simple.ref.ui
background-position-simple.ui
background-position.css
background-position.ref.ui Fix unittests 2016-10-18 00:34:41 +02:00
background-position.ui Fix unittests 2016-10-18 00:34:41 +02:00
background-positioning-area-empty.ref.ui Fix unittests 2016-10-18 00:34:41 +02:00
background-positioning-area-empty.ui Fix unittests 2016-10-18 00:34:41 +02:00
background-repeat.css
background-repeat.ref.ui
background-repeat.ui
background-size-keywords.css
background-size-keywords.ref.ui Fix unittests 2016-10-18 00:34:41 +02:00
background-size-keywords.ui Fix unittests 2016-10-18 00:34:41 +02:00
background-size-zero.css
background-size-zero.ref.ui
background-size-zero.ui
background-size.css
background-size.ref.ui Fix unittests 2016-10-18 00:34:41 +02:00
background-size.ui Fix unittests 2016-10-18 00:34:41 +02:00
background-window-transparent.css
background-window-transparent.ref.ui
background-window-transparent.ui
bad-color-names.css
bad-color-names.ref.ui
bad-color-names.ui
border-color-default.css
border-color-default.ref.ui Fix unittests 2016-10-18 00:34:41 +02:00
border-color-default.ui Fix unittests 2016-10-18 00:34:41 +02:00
border-corner-zero-width-rendering.css
border-corner-zero-width-rendering.ref.ui
border-corner-zero-width-rendering.ui
border-half-pixel.css
border-half-pixel.ref.ui Fix unittests 2016-10-18 00:34:41 +02:00
border-half-pixel.ui Fix unittests 2016-10-18 00:34:41 +02:00
border-image-3-balls-green-squished.png
border-image-3-balls-green.png
border-image-3-balls-yellow-squished.png
border-image-3-balls-yellow.png
border-image-ball-green.png
border-image-ball-red.png
border-image-ball-yellow.png
border-image-balls.png
border-image-excess-size.css
border-image-excess-size.ref.ui
border-image-excess-size.ui
border-image-url-scaled.css
border-image-url-scaled.ref.ui Fix unittests 2016-10-18 00:34:41 +02:00
border-image-url-scaled.ui Fix unittests 2016-10-18 00:34:41 +02:00
border-image-url.css
border-image-url.ref.ui Fix unittests 2016-10-18 00:34:41 +02:00
border-image-url.ui Fix unittests 2016-10-18 00:34:41 +02:00
border-radius-clamp.css
border-radius-clamp.ref.ui
border-radius-clamp.ui
border-rgb.png
border-rgb@2.png
border-style-none.css
border-style-none.ref.ui Fix unittests 2016-10-18 00:34:41 +02:00
border-style-none.ui Fix unittests 2016-10-18 00:34:41 +02:00
border-style.css
border-style.ref.ui Fix unittests 2016-10-18 00:34:41 +02:00
border-style.ui Fix unittests 2016-10-18 00:34:41 +02:00
box-order.css
box-order.ref.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
box-order.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
box-packing.css
box-packing.ref.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
box-packing.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
box-pseudo-classes.css
box-pseudo-classes.ref.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
box-pseudo-classes.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
box-shadow-changes-modify-clip.css
box-shadow-changes-modify-clip.ref.ui
box-shadow-changes-modify-clip.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
box-shadow-spec-inset.css
box-shadow-spec-inset.ref.ui
box-shadow-spec-inset.ui
box-shadow-spread.css
box-shadow-spread.ref.ui
box-shadow-spread.ui
box-shadow-with-blend-mode.css reftests: Add reftest for the last 2 fixes 2016-11-08 02:32:39 +01:00
box-shadow-with-blend-mode.ref.ui reftests: Fix test 2017-01-13 03:38:36 +01:00
box-shadow-with-blend-mode.ui reftests: Fix test 2017-01-13 03:38:36 +01:00
button-wrapping.ref.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
button-wrapping.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
color-transition.css
color-transition.ref.ui
color-transition.ui
css-currentcolor-alpha.css
css-currentcolor-alpha.ref.ui
css-currentcolor-alpha.ui
css-em-label-size.css
css-em-label-size.ref.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
css-em-label-size.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
css-image-aspect-ratio.css cssimage: Scale images to contain, not cover 2017-01-13 03:38:36 +01:00
css-image-aspect-ratio.ref.ui cssimage: Scale images to contain, not cover 2017-01-13 03:38:36 +01:00
css-image-aspect-ratio.ui cssimage: Scale images to contain, not cover 2017-01-13 03:38:36 +01:00
css-image-color-aspect-ratio.css cssimage: Fallback images have no aspect ratio 2017-01-13 03:38:36 +01:00
css-image-color-aspect-ratio.ref.ui cssimage: Fallback images have no aspect ratio 2017-01-13 03:38:36 +01:00
css-image-color-aspect-ratio.ui cssimage: Fallback images have no aspect ratio 2017-01-13 03:38:36 +01:00
css-match-class.css
css-match-class.ref.ui
css-match-class.ui
css-match-descendant-later.css reftests: Remove event box usage 2017-08-02 11:34:57 +01:00
css-match-descendant-later.ref.ui reftests: Remove event box usage 2017-08-02 11:34:57 +01:00
css-match-descendant-later.ui reftests: Remove event box usage 2017-08-02 11:34:57 +01:00
css-match-exact.css reftests: Remove event box usage 2017-08-02 11:34:57 +01:00
css-match-exact.ref.ui
css-match-exact.ui reftests: Remove event box usage 2017-08-02 11:34:57 +01:00
css-match-import-import.css
css-match-import.css
css-match-import.ref.ui
css-match-import.ui
css-match-inherit-different-state.css
css-match-inherit-different-state.ref.ui Fix unittests 2016-10-18 00:34:41 +02:00
css-match-inherit-different-state.ui Fix unittests 2016-10-18 00:34:41 +02:00
css-match-inherit.css
css-match-inherit.ref.ui Fix unittests 2016-10-18 00:34:41 +02:00
css-match-inherit.ui Fix unittests 2016-10-18 00:34:41 +02:00
css-match-name.css
css-match-name.ref.ui
css-match-name.ui
css-match-siblings.css
css-match-siblings.ref.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
css-match-siblings.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
css-match-type.css
css-match-type.ref.ui
css-match-type.ui
css-multi-state.css
css-multi-state.ref.ui Fix unittests 2016-10-18 00:34:41 +02:00
css-multi-state.ui Fix unittests 2016-10-18 00:34:41 +02:00
css-rem-label-size.css
css-rem-label-size.ref.ui
css-rem-label-size.ui
expand-expander.c
expander.ref.ui
expander.ui
fixed-widget-stacking.ref.ui
fixed-widget-stacking.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
flipping-icons.ref.ui
flipping-icons.ui
font-sizes-names.css
font-sizes-names.ref.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
font-sizes-names.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
frame-inhibitor.c
green-20x20.png
grid-empty-with-spacing.ref.ui
grid-empty-with-spacing.ui
grid-expand.css reftests: Remove event box usage 2017-08-02 11:34:57 +01:00
grid-expand.ref.ui reftests: Remove event box usage 2017-08-02 11:34:57 +01:00
grid-expand.ui reftests: Remove event box usage 2017-08-02 11:34:57 +01:00
grid-homogeneous.css
grid-homogeneous.ref.ui reftests: Remove event box usage 2017-08-02 11:34:57 +01:00
grid-homogeneous.ui reftests: Remove event box usage 2017-08-02 11:34:57 +01:00
grid-spacing1.ref.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
grid-spacing1.ui
grid-spacing2.ref.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
grid-spacing2.ui label: Remove angle property 2017-04-25 20:30:37 +02:00
grid-spacing3.css reftests: Remove event box usage 2017-08-02 11:34:57 +01:00
grid-spacing3.ref.ui reftests: Remove event box usage 2017-08-02 11:34:57 +01:00
grid-spacing3.ui reftests: Remove event box usage 2017-08-02 11:34:57 +01:00
grid-wfh.ref.ui
grid-wfh.ui
gtk-icontheme-sizing.css
gtk-icontheme-sizing.ref.ui enums: Change GtkIconSize values 2017-11-15 14:22:17 -05:00
gtk-icontheme-sizing.ui
gtk-image-effect-inherit.css gtk: Replace -gtk-icon-effect with -gtk-icon-filter 2016-12-31 02:49:47 +01:00
gtk-image-effect-inherit.ref.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
gtk-image-effect-inherit.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
gtk-reftest.c tests: Make GSETTINGS_SCHEMA_DIR point to the compiled schemas in the build dir 2018-02-17 09:48:12 +01:00
gtk-reftest.h
icon-effect-missing.css gtk: Replace -gtk-icon-effect with -gtk-icon-filter 2016-12-31 02:49:47 +01:00
icon-effect-missing.ref.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
icon-effect-missing.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
icon-shadow-no-transform.css
icon-shadow-no-transform.ref.ui
icon-shadow-no-transform.ui
icon-style-basics.css
icon-style-basics.ref.ui
icon-style-basics.ui
icon-vfuncs.css
icon-vfuncs.ref.ui
icon-vfuncs.ui enums: Change GtkIconSize values 2017-11-15 14:22:17 -05:00
iconview-empty.css
iconview-empty.ref.ui enums: Change GtkIconSize values 2017-11-15 14:22:17 -05:00
iconview-empty.ui
image-icon-name-use-fallback.ref.ui
image-icon-name-use-fallback.ui
image-icon-shadow-clipping.css
image-icon-shadow-clipping.ref.ui
image-icon-shadow-clipping.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
image-load-from-file.css
image-load-from-file.ref.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
image-load-from-file.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
image-recording-surface.c
image-recording-surface.ref.ui
image-recording-surface.ui
info-bar-message-types.css
info-bar-message-types.ref.ui
info-bar-message-types.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
inherit-and-initial.css
inherit-and-initial.ref.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
inherit-and-initial.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
label-attribute-preference.css
label-attribute-preference.ref.ui
label-attribute-preference.ui
label-background.css
label-background.ref.ui
label-background.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
label-box-shadow-clip.css
label-box-shadow-clip.ref.ui
label-box-shadow-clip.ui
label-clipping.css
label-clipping.ref.ui
label-clipping.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
label-ellipsize-small.ref.ui
label-ellipsize-small.ui
label-ellipsize-with-big.ref.ui
label-ellipsize-with-big.ui
label-shadows.css
label-shadows.ref.ui label: Remove angle property 2017-04-25 20:30:37 +02:00
label-shadows.ui label: Remove angle property 2017-04-25 20:30:37 +02:00
label-sizing.css
label-sizing.ref.ui Drop support for offscreen GdkWindows 2016-10-25 09:54:37 +02:00
label-sizing.ui Drop support for offscreen GdkWindows 2016-10-25 09:54:37 +02:00
label-small-ellipsized.ref.ui
label-small-ellipsized.ui
label-text-shadow-changes-modify-clip.css
label-text-shadow-changes-modify-clip.ref.ui
label-text-shadow-changes-modify-clip.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
label-text-shadow-clipping.css
label-text-shadow-clipping.ref.ui
label-text-shadow-clipping.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
label-width-chars-dont-shrink.ref.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
label-width-chars-dont-shrink.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
label-wrap-justify.ref.ui
label-wrap-justify.ui
letter-spacing.c
letter-spacing.css
letter-spacing.ref.ui
letter-spacing.ui
linear-gradient-transition-to-other.css
linear-gradient-transition-to-other.ref.ui Remove GtkActionGroup 2016-10-18 00:34:41 +02:00
linear-gradient-transition-to-other.ui Remove GtkActionGroup 2016-10-18 00:34:41 +02:00
linear-gradient.css
linear-gradient.ref.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
linear-gradient.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
link-coloring.css
link-coloring.ref.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
link-coloring.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
marble.xpm
meson.build tests: Make GSETTINGS_SCHEMA_DIR point to the compiled schemas in the build dir 2018-02-17 09:48:12 +01:00
messagedialog-secondarytext.ref.ui
messagedialog-secondarytext.ui
named-colors.css
named-colors.ref.ui
named-colors.ui
no-colors.css
no-colors.ref.ui
no-colors.ui
nonresizable-size.ref.ui
nonresizable-size.ui
notebook-childproperties.css
notebook-childproperties.ref.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
notebook-childproperties.ui
notebook-tab-position.css
notebook-tab-position.ref.ui
notebook-tab-position.ui
nth-child.css
nth-child.ref.ui
nth-child.ui box: Remove fill child property 2017-04-25 20:30:37 +02:00
opacity-initial.css
opacity-initial.ref.ui
opacity-initial.ui
opacity.css
opacity.ref.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
opacity.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
overlay-no-main-widget.ref.ui
overlay-no-main-widget.ui
paned-undersized.css reftests: Remove event box usage 2017-08-02 11:34:57 +01:00
paned-undersized.ref.ui reftests: Remove event box usage 2017-08-02 11:34:57 +01:00
paned-undersized.ui reftests: Remove event box usage 2017-08-02 11:34:57 +01:00
pseudoclass-on-box.css
pseudoclass-on-box.ref.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
pseudoclass-on-box.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
pseudoclass-on-parent.css
pseudoclass-on-parent.ref.ui
pseudoclass-on-parent.ui
quit-mnemonic.css
quit-mnemonic.ref.ui
quit-mnemonic.ui
README
reference-background-origin.png
reftest-compare.c
reftest-compare.h
reftest-module.c
reftest-module.h
reftest-snapshot.c reftests: Fix compilation 2018-06-26 00:53:39 +02:00
reftest-snapshot.h
reftests-dark.test.in reftests: Fix path to installed-tests in .test metadata 2018-09-19 09:37:06 +01:00
reftests-hc.test.in reftests: Fix path to installed-tests in .test metadata 2018-09-19 09:37:06 +01:00
reftests-hci.test.in reftests: Fix path to installed-tests in .test metadata 2018-09-19 09:37:06 +01:00
reftests.test.in reftests: Fix path to installed-tests in .test metadata 2018-09-19 09:37:06 +01:00
repeating-radial-gradient-at-beginning.css cssimageradial: Handle "partial" gradients correctly 2016-12-20 18:01:12 +01:00
repeating-radial-gradient-at-beginning.ref.ui cssimageradial: Handle "partial" gradients correctly 2016-12-20 18:01:12 +01:00
repeating-radial-gradient-at-beginning.ui cssimageradial: Handle "partial" gradients correctly 2016-12-20 18:01:12 +01:00
reset-to-defaults.css
revealer-extra-size.ref.ui
revealer-extra-size.ui
revealer-wrappable-contents.ref.ui
revealer-wrappable-contents.ui
rotated-layout.ref.ui label: Remove angle property 2017-04-25 20:30:37 +02:00
rotated-layout.ui label: Remove angle property 2017-04-25 20:30:37 +02:00
separator-size.css
separator-size.ref.ui
separator-size.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
set-default-direction.c
set-default-direction.ref.ui
set-default-direction.ui
shadow-clip-rounding.css
shadow-clip-rounding.ref.ui
shadow-clip-rounding.ui
shorthand-entry-border.css
shorthand-entry-border.ref.ui
shorthand-entry-border.ui
sibling-pseudoclasses.css
sibling-pseudoclasses.ref.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
sibling-pseudoclasses.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
simple.ref.ui reftests: Remove event box usage 2017-08-02 11:34:57 +01:00
simple.ui reftests: Remove event box usage 2017-08-02 11:34:57 +01:00
sizegroups-basics.css
sizegroups-basics.ref.ui
sizegroups-basics.ui
sizegroups-evolution-identity-page.ref.ui
sizegroups-evolution-identity-page.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
sizegroups-get-preferred-null.ref.ui
sizegroups-get-preferred-null.ui
statusbar-remove-all.c
statusbar-remove-all.ref.ui
statusbar-remove-all.ui
style-context-save-inheritance.css
style-context-save-inheritance.ref.ui
style-context-save-inheritance.ui
style-properties-nth-child.css
style-properties-nth-child.ref.ui Fix unittests 2016-10-18 00:34:41 +02:00
style-properties-nth-child.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
style-properties-only-child.css
style-properties-only-child.ref.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
style-properties-only-child.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
symbolic-icon-translucent-color.css
symbolic-icon-translucent-color.ref.ui
symbolic-icon-translucent-color.ui
textview-border-windows.c
textview-border-windows.css
textview-border-windows.ref.ui
textview-border-windows.ui
textview-margins.css
textview-margins.ref.ui
textview-margins.ui
textview-tags.c
textview-tags.css
textview-tags.ref.ui
textview-tags.ui
toplevel-vs-popup.ref.ui
toplevel-vs-popup.ui
treeview-crash-too-wide.ref.ui
treeview-crash-too-wide.ui
treeview-fixed-height.css
treeview-fixed-height.ref.ui
treeview-fixed-height.ui
treeview-headers-hidden.ref.ui
treeview-headers-hidden.ui
unresolvable.css
unresolvable.ref.ui
unresolvable.ui
window-border-width.ref.ui
window-border-width.ui
window-default-size.ref.ui
window-default-size.ui
window-height-for-width.ref.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
window-height-for-width.ui box: Remove the position child property 2019-01-23 19:30:47 -05:00
window-show-contents-on-map.ref.ui
window-show-contents-on-map.ui

gtk-reftest is a new test runner supposed to do a lot of generic tests.
Run it like this:

./gtk-reftest [OPTIONS] TESTFILE [TESTFILES...]

where FILE is a GtkBuilder ui file to run.

For a general test named "test", you want to have the following files:
1) test.ui
2) test.ref.ui
3) test.css (optional)
The test will then check that test.ui and test.ref.ui are rendered
identically with the provided css.

In detail, for every provided TESTFILE the test runner will:
1) Add the css to the default screen
2) Load the test.ui file and the test.ref.ui file
3) Grab the first GtkWindow subclass widget
4) gtk_widget_show() it and take a snapshot image of its contents into
   a cairo surface.
5) Compare the two images to be bitwise identical. If they are not, a
   diff image will be created hilighting the differences.
6) Save the images as png files to the output directory named:
   - test.out.png (rendering of test.ui)
   - test.ref.png (rendering of test.ref.ui)
   - test.diff.png (optional, differences from step 5)
7) Fail the test if the two images are not bitwise identical

Credit for the idea of reftests goes to Mozilla and in particular David
Baron. For a larger introduction of why reftests are useful, see
http://weblogs.mozillazine.org/roc/archives/2008/12/reftests.html