Add a repeat node test

This commit is contained in:
Matthias Clasen 2017-10-08 12:21:03 -04:00
parent df549c4e9f
commit 1fe4e12356
3 changed files with 18 additions and 0 deletions

BIN
testsuite/gsk/repeat.node Normal file

Binary file not shown.

BIN
testsuite/gsk/repeat.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 604 B

View File

@ -154,12 +154,30 @@ cairo (void)
return node;
}
static GskRenderNode *
repeat (void)
{
GskRenderNode *repeat;
GskRenderNode *child;
child = cairo ();
repeat = gsk_repeat_node_new (&GRAPHENE_RECT_INIT (0, 0, 200, 200),
child,
&GRAPHENE_RECT_INIT (0, 0, 200, 600));
gsk_render_node_unref (child);
return repeat;
}
static const struct {
const char *name;
GskRenderNode * (* func) (void);
} functions[] = {
{ "colors.node", colors },
{ "cairo.node", cairo },
{ "repeat.node", repeat },
};
/*** test setup ***/