Changeset 307d4d2 in mainline for uspace/lib/ui/test/checkbox.c
- Timestamp:
- 2021-08-13T10:57:34Z (3 years ago)
- Branches:
- master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 297b1b3
- Parents:
- 5e109e1
- git-author:
- Jiri Svoboda <jiri@…> (2020-08-12 19:55:53)
- git-committer:
- Jiri Svoboda <jiri@…> (2021-08-13 10:57:34)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/test/checkbox.c
r5e109e1 r307d4d2 151 151 } 152 152 153 /** Paint check box */154 PCUT_TEST(paint )153 /** Paint check box in graphics mode */ 154 PCUT_TEST(paint_gfx) 155 155 { 156 156 errno_t rc; … … 171 171 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 172 172 173 rc = ui_checkbox_paint(checkbox); 173 rc = ui_checkbox_paint_gfx(checkbox); 174 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 175 176 ui_checkbox_destroy(checkbox); 177 ui_resource_destroy(resource); 178 179 rc = gfx_context_delete(gc); 180 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 181 } 182 183 /** Paint check box in text mode */ 184 PCUT_TEST(paint_text) 185 { 186 errno_t rc; 187 gfx_context_t *gc = NULL; 188 test_gc_t tgc; 189 ui_resource_t *resource = NULL; 190 ui_checkbox_t *checkbox; 191 192 memset(&tgc, 0, sizeof(tgc)); 193 rc = gfx_context_new(&ops, &tgc, &gc); 194 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 195 196 rc = ui_resource_create(gc, true, &resource); 197 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 198 PCUT_ASSERT_NOT_NULL(resource); 199 200 rc = ui_checkbox_create(resource, "Hello", &checkbox); 201 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 202 203 rc = ui_checkbox_paint_text(checkbox); 174 204 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 175 205
Note:
See TracChangeset
for help on using the changeset viewer.