Changeset 06176e1 in mainline for uspace/lib/ui/test/paint.c
- Timestamp:
- 2022-12-20T12:31:44Z (3 years ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4e7b0ad
- Parents:
- d46ac73
- git-author:
- Jiri Svoboda <jiri@…> (2022-12-19 18:31:30)
- git-committer:
- Jiri Svoboda <jiri@…> (2022-12-20 12:31:44)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/test/paint.c
rd46ac73 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.