gtk2/tests/reftests
2011-11-29 20:44:57 +01:00
..
align-expand.sh
alignment-props.css
alignment-props.ref.ui
alignment-props.ui
background-area.css Update background-area reftest for background-clip 2011-11-25 16:14:20 +01:00
background-area.ref.ui Update background-area reftest for background-clip 2011-11-25 16:14:20 +01:00
background-area.ui Update background-area reftest for background-clip 2011-11-25 16:14:20 +01:00
background-color-transparent.css reftests: Add a reftest checking background-color: transparent 2011-09-26 22:34:20 +02:00
background-color-transparent.ref.ui reftests: Add a reftest checking background-color: transparent 2011-09-26 22:34:20 +02:00
background-color-transparent.ui reftests: Add a reftest checking background-color: transparent 2011-09-26 22:34:20 +02:00
background-origin.css Reftest background-origin with various background-clip values 2011-11-25 16:14:20 +01:00
background-origin.ref.ui Reftest background-origin with various background-clip values 2011-11-25 16:14:20 +01:00
background-origin.ui Reftest background-origin with various background-clip values 2011-11-25 16:14:20 +01:00
background-repeat.css reftests: Add a reftest for background-repeat css property 2011-11-08 12:41:35 -05:00
background-repeat.ref.ui reftests: Mark windows as popups 2011-11-24 18:29:45 +01:00
background-repeat.ui reftests: Mark windows as popups 2011-11-24 18:29:45 +01:00
border-color-default.css reftests: Check that the default border color is the foreground color 2011-06-13 15:01:52 +02:00
border-color-default.ref.ui reftests: Check that the default border color is the foreground color 2011-06-13 15:01:52 +02:00
border-color-default.ui reftests: Check that the default border color is the foreground color 2011-06-13 15:01:52 +02:00
border-image-3-balls-green.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-gradient.css reftests: Make sure border-image-gradient keeps working 2011-11-25 15:12:45 +01:00
border-image-gradient.ref.ui
border-image-gradient.ui
border-image-repeat.css
border-image-repeat.ref.ui
border-image-repeat.sh
border-image-repeat.ui
border-image-url.css
border-image-url.ref.ui
border-image-url.ui
border-radius-clamp.css reftests: Add test for border radius clamping 2011-07-21 02:43:54 +02:00
border-radius-clamp.ref.ui reftests: Add test for border radius clamping 2011-07-21 02:43:54 +02:00
border-radius-clamp.ui reftests: Add test for border radius clamping 2011-07-21 02:43:54 +02:00
border-style-none.css Add reftest to test border-style: none 2011-11-25 16:14:10 +01:00
border-style-none.ref.ui Add reftest to test border-style: none 2011-11-25 16:14:10 +01:00
border-style-none.ui Add reftest to test border-style: none 2011-11-25 16:14:10 +01:00
box-expand.css
box-expand.ref.ui
box-expand.ui
box-packing.css
box-packing.ref.ui
box-packing.ui
box-pseudo-classes.css
box-pseudo-classes.ref.ui
box-pseudo-classes.ui
box-shadow-spec-inset.css reftests: Disable border-radius tests for shadow 2011-09-05 18:56:23 +02:00
box-shadow-spec-inset.ref.ui
box-shadow-spec-inset.ui
css-match-class.css
css-match-class.ref.ui
css-match-class.ui
css-match-descendant-later.css
css-match-descendant-later.ref.ui
css-match-descendant-later.ui
css-match-exact.css
css-match-exact.ref.ui
css-match-exact.ui
css-match-inherit.css
css-match-inherit.ref.ui
css-match-inherit.ui
css-match-name.css
css-match-name.ref.ui
css-match-name.ui
css-match-region-matches-star.css
css-match-region-matches-star.ref.ui
css-match-region-matches-star.ui
css-match-regions.css
css-match-regions.ref.ui
css-match-regions.ui
css-match-style-property-order.css
css-match-style-property-order.ref.ui
css-match-style-property-order.ui
css-match-subtype.css
css-match-subtype.ref.ui
css-match-subtype.ui
css-match-type.css
css-match-type.ref.ui
css-match-type.ui
entry-progress-coloring.css reftests: Fix test for border-image addition 2011-11-29 20:44:57 +01:00
entry-progress-coloring.ref.ui
entry-progress-coloring.ui
green-20x20.png
grid-expand.css
grid-expand.ref.ui
grid-expand.ui
grid-homogeneous.css
grid-homogeneous.ref.ui
grid-homogeneous.ui
grid-spacing1.ref.ui
grid-spacing1.ui grid: Swap wrong spacing properties 2011-09-05 18:56:23 +02:00
grid-spacing2.ref.ui
grid-spacing2.ui grid: Swap wrong spacing properties 2011-09-05 18:56:23 +02:00
grid-spacing3.css
grid-spacing3.ref.ui
grid-spacing3.ui
grid-wfh.ref.ui
grid-wfh.ui
gtk-reftest.c
label-shadows.css
label-shadows.ref.ui
label-shadows.ui
label-sizing.css
label-sizing.ref.ui reftests: Use an offscreen window to avoid artifacts 2011-07-05 15:28:18 +02:00
label-sizing.ui reftests: Use an offscreen window to avoid artifacts 2011-07-05 15:28:18 +02:00
label-small-ellipsized.ref.ui
label-small-ellipsized.ui
label-wrap-justify.ref.ui
label-wrap-justify.ui
Makefile.am Reftest background-origin with various background-clip values 2011-11-25 16:14:20 +01:00
messagedialog-secondarytext.ref.ui reftests: Add test for recent fix 2011-07-19 11:58:22 +02:00
messagedialog-secondarytext.ui reftests: Add test for recent fix 2011-07-19 11:58:22 +02:00
misc-alignment.css
misc-alignment.ref.ui
misc-alignment.ui
no-colors.css
no-colors.ref.ui
no-colors.ui
nonresizable-size.ref.ui
nonresizable-size.ui
notebook-childproperties.ref.ui reftests: Add a test for the recent notebook fix 2011-08-27 02:47:52 +02:00
notebook-childproperties.ui reftests: Add a test for the recent notebook fix 2011-08-27 02:47:52 +02:00
paned-undersized.css
paned-undersized.ref.ui
paned-undersized.ui
quit-mnemonic.ref.ui
quit-mnemonic.ui
README
reference-background-origin.png Fix up background-origin now that we correctly handle the background color 2011-11-25 16:14:20 +01:00
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
style-properties-nth-child.css reftests: Add test for box brokenness 2011-07-02 01:57:27 +02:00
style-properties-nth-child.ref.ui reftests: Add test for box brokenness 2011-07-02 01:57:27 +02:00
style-properties-nth-child.ui reftests: Add test for box brokenness 2011-07-02 01:57:27 +02:00
style-properties-only-child.css reftests: add a reftest for the CSS :only-child selector 2011-10-04 11:48:20 -04:00
style-properties-only-child.ref.ui reftests: add a reftest for the CSS :only-child selector 2011-10-04 11:48:20 -04:00
style-properties-only-child.ui reftests: add a reftest for the CSS :only-child selector 2011-10-04 11:48:20 -04:00
toplevel-vs-popup.ref.ui
toplevel-vs-popup.ui
unresolvable.css Fix make check 2011-10-25 07:38:36 -04:00
unresolvable.ref.ui
unresolvable.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