1
#include "cairo-test.h"
2

            
3
static const char *png_filename = "romedalen.png";
4

            
5
static cairo_test_status_t
6
3
draw (cairo_t *cr, int width, int height)
7
{
8
3
    const cairo_test_context_t *ctx = cairo_test_get_context (cr);
9
    cairo_surface_t *surface;
10

            
11
3
    surface = cairo_test_create_surface_from_png (ctx, png_filename);
12
3
    cairo_set_source_surface (cr, surface, 32, 32);
13
3
    cairo_pattern_set_extend (cairo_get_source (cr), CAIRO_EXTEND_REPEAT);
14

            
15
3
    cairo_paint (cr);
16

            
17
3
    cairo_surface_destroy (surface);
18

            
19
3
    return CAIRO_TEST_SUCCESS;
20
}
21

            
22
1
CAIRO_TEST (extend_repeat,
23
	    "Test CAIRO_EXTEND_REPEAT for surface patterns",
24
	    "extend", /* keywords */
25
	    NULL, /* requirements */
26
	    256 + 32*2, 192 + 32*2,
27
	    NULL, draw)