Changeset 58a67050 in mainline for uspace/lib/ui/test
- Timestamp:
- 2020-10-21T22:26:33Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 08a79303
- Parents:
- a2f173b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/test/label.c
ra2f173b r58a67050 121 121 } 122 122 123 /** Set button text horizontal alignment sets internal field */ 124 PCUT_TEST(set_halign) 125 { 126 ui_label_t *label; 127 errno_t rc; 128 129 rc = ui_label_create(NULL, "Hello", &label); 130 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 131 132 ui_label_set_halign(label, gfx_halign_left); 133 PCUT_ASSERT_EQUALS(gfx_halign_left, label->halign); 134 ui_label_set_halign(label, gfx_halign_center); 135 PCUT_ASSERT_EQUALS(gfx_halign_center, label->halign); 136 137 ui_label_destroy(label); 138 } 139 123 140 /** Set button rectangle sets internal field */ 124 141 PCUT_TEST(set_text)
Note:
See TracChangeset
for help on using the changeset viewer.