Changeset 8a9a41e in mainline for uspace/lib/ui/test/checkbox.c
- Timestamp:
- 2021-10-24T08:28:43Z (4 years ago)
- Children:
- 9ea3a41
- Parents:
- 2ce943a (diff), cd981f2a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- Erik Kučák <35500848+Riko196@…> (2021-10-24 08:28:43)
- git-committer:
- GitHub <noreply@…> (2021-10-24 08:28:43)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/test/checkbox.c
r2ce943a r8a9a41e 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, 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); 174 204 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 175 205
Note:
See TracChangeset
for help on using the changeset viewer.