tests: Assert surface creation succeeds

This commit is contained in:
Kristian Høgsberg 2013-10-09 13:37:43 -07:00
parent e8344e3dbc
commit 3b7d841b7e
2 changed files with 2 additions and 0 deletions

View File

@ -34,6 +34,7 @@ surface_to_from_global(void *data)
int32_t ix, iy;
surface = weston_surface_create(compositor);
assert(surface);
weston_surface_configure(surface, 5, 10, 50, 50);
weston_surface_update_transform(surface);

View File

@ -34,6 +34,7 @@ surface_transform(void *data)
float x, y;
surface = weston_surface_create(compositor);
assert(surface);
weston_surface_configure(surface, 100, 100, 200, 200);
weston_surface_update_transform(surface);
weston_surface_to_global_float(surface, 20, 20, &x, &y);