forked from AuroraMiddleware/gtk
Use the g_test_*() API for this test reviewed by: Richard Hult
2008-08-15 Sven Herzberg <sven@imendio.com> Use the g_test_*() API for this test reviewed by: Richard Hult * gdk/tests/check-gdk-cairo.c: use the g_test_*() API to permit adding new tests svn path=/trunk/; revision=21133
This commit is contained in:
parent
efb330447c
commit
e8442a52aa
@ -1,3 +1,11 @@
|
||||
2008-08-15 Sven Herzberg <sven@imendio.com>
|
||||
|
||||
Use the g_test_*() API for this test
|
||||
reviewed by: Richard Hult
|
||||
|
||||
* gdk/tests/check-gdk-cairo.c: use the g_test_*() API to permit adding
|
||||
new tests
|
||||
|
||||
2008-08-15 Sven Herzberg <sven@imendio.com>
|
||||
|
||||
Prepare for using the g_test_*() API
|
||||
|
@ -46,9 +46,8 @@ test (cairo_t* cr)
|
||||
cairo_stroke (cr);
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc,
|
||||
char**argv)
|
||||
static void
|
||||
test_pixmap_orientation (void)
|
||||
{
|
||||
GdkPixmap* pixmap;
|
||||
GdkPixbuf* pixbuf;
|
||||
@ -61,8 +60,6 @@ main (int argc,
|
||||
guchar* data_imagesrf;
|
||||
guint i;
|
||||
|
||||
gdk_init (&argc, &argv);
|
||||
|
||||
/* create "platform.png" via GdkPixmap */
|
||||
pixmap = gdk_pixmap_new (NULL /* drawable */, 100 /* w */, 80 /* h */, 24 /* d */);
|
||||
cr = gdk_cairo_create (pixmap);
|
||||
@ -133,7 +130,18 @@ main (int argc,
|
||||
|
||||
g_unlink ("gdksurface.png");
|
||||
g_unlink ("cairosurface.png");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc,
|
||||
char**argv)
|
||||
{
|
||||
g_test_init (&argc, &argv, NULL);
|
||||
gdk_init (&argc, &argv);
|
||||
|
||||
g_test_add_func ("/gdk/pixmap/orientation",
|
||||
test_pixmap_orientation);
|
||||
|
||||
return g_test_run ();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user