forked from AuroraMiddleware/gtk
Add a repeat node test
This commit is contained in:
parent
df549c4e9f
commit
1fe4e12356
BIN
testsuite/gsk/repeat.node
Normal file
BIN
testsuite/gsk/repeat.node
Normal file
Binary file not shown.
BIN
testsuite/gsk/repeat.png
Normal file
BIN
testsuite/gsk/repeat.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 604 B |
@ -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 ***/
|
||||
|
Loading…
Reference in New Issue
Block a user