Changes in uspace/lib/ui/test/paint.c [35cffea:06176e1] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/test/paint.c
r35cffea r06176e1 354 354 } 355 355 356 /** Paint mimimize icon */ 357 PCUT_TEST(minicon) 358 { 359 errno_t rc; 360 gfx_context_t *gc = NULL; 361 ui_resource_t *resource = NULL; 362 test_gc_t tgc; 363 gfx_coord2_t center; 364 365 memset(&tgc, 0, sizeof(tgc)); 366 rc = gfx_context_new(&ops, &tgc, &gc); 367 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 368 369 rc = ui_resource_create(gc, false, &resource); 370 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 371 PCUT_ASSERT_NOT_NULL(resource); 372 373 center.x = 0; 374 center.y = 0; 375 376 rc = ui_paint_minicon(resource, ¢er, 8, 6); 377 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 378 379 ui_resource_destroy(resource); 380 rc = gfx_context_delete(gc); 381 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 382 } 383 356 384 /** Paint maximize icon */ 357 385 PCUT_TEST(maxicon)
Note:
See TracChangeset
for help on using the changeset viewer.