diff --git a/testsuite/gsk/repeat.node b/testsuite/gsk/repeat.node new file mode 100644 index 0000000000..3b57cf2203 Binary files /dev/null and b/testsuite/gsk/repeat.node differ diff --git a/testsuite/gsk/repeat.png b/testsuite/gsk/repeat.png new file mode 100644 index 0000000000..a587cf91bf Binary files /dev/null and b/testsuite/gsk/repeat.png differ diff --git a/testsuite/gsk/test-render-nodes.c b/testsuite/gsk/test-render-nodes.c index 67f7e30fbe..1668239919 100644 --- a/testsuite/gsk/test-render-nodes.c +++ b/testsuite/gsk/test-render-nodes.c @@ -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 ***/