mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2025-12-20 04:40:07 +01:00
test: Re-enable pass-through
The pass-through test was not updated to the current test conventions and was not enabled in the Makefiles.
This commit is contained in:
parent
c8b5d270f6
commit
97b219a5e7
2 changed files with 7 additions and 14 deletions
|
|
@ -228,6 +228,7 @@ test_sources = \
|
|||
paint-with-alpha.c \
|
||||
partial-clip-text.c \
|
||||
partial-coverage.c \
|
||||
pass-through.c \
|
||||
path-append.c \
|
||||
path-stroke-twice.c \
|
||||
path-precision.c \
|
||||
|
|
|
|||
|
|
@ -25,15 +25,6 @@
|
|||
|
||||
#include "cairo-test.h"
|
||||
|
||||
static cairo_test_draw_function_t draw;
|
||||
|
||||
static const cairo_test_t test = {
|
||||
"pass-through",
|
||||
"Tests pixel values",
|
||||
16, 256,
|
||||
draw
|
||||
};
|
||||
|
||||
static cairo_test_status_t
|
||||
draw (cairo_t *cr, int width, int height)
|
||||
{
|
||||
|
|
@ -92,8 +83,9 @@ draw (cairo_t *cr, int width, int height)
|
|||
return CAIRO_TEST_SUCCESS;
|
||||
}
|
||||
|
||||
int
|
||||
main (void)
|
||||
{
|
||||
return cairo_test (&test);
|
||||
}
|
||||
CAIRO_TEST (pass_through,
|
||||
"tests pixel values",
|
||||
"color", /* keywords */
|
||||
NULL, /* requirements */
|
||||
16, 256,
|
||||
NULL, draw)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue