Changes in uspace/lib/ui/test/checkbox.c [297b1b3:7470d97] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/test/checkbox.c
r297b1b3 r7470d97 151 151 } 152 152 153 /** Paint check box in graphics mode*/154 PCUT_TEST(paint _gfx)153 /** Paint check box */ 154 PCUT_TEST(paint) 155 155 { 156 156 errno_t rc; … … 171 171 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 172 172 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, false, &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); 173 rc = ui_checkbox_paint(checkbox); 204 174 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 205 175
Note:
See TracChangeset
for help on using the changeset viewer.