Changeset 8a9a41e in mainline for uspace/lib/ui/test/window.c


Ignore:
Timestamp:
2021-10-24T08:28:43Z (3 years ago)
Author:
GitHub <noreply@…>
Children:
6855743
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)
Message:

Merge branch 'HelenOS:master' into master

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ui/test/window.c

    r2ce943a r8a9a41e  
    258258}
    259259
     260/** ui_window_get_ui() returns containing UI */
     261PCUT_TEST(get_ui)
     262{
     263        errno_t rc;
     264        ui_t *ui = NULL;
     265        ui_t *rui;
     266        ui_wnd_params_t params;
     267        ui_window_t *window = NULL;
     268
     269        rc = ui_create_disp(NULL, &ui);
     270        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
     271
     272        ui_wnd_params_init(&params);
     273        params.caption = "Hello";
     274
     275        rc = ui_window_create(ui, &params, &window);
     276        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
     277        PCUT_ASSERT_NOT_NULL(window);
     278
     279        rui = ui_window_get_ui(window);
     280        PCUT_ASSERT_EQUALS(ui, rui);
     281
     282        ui_window_destroy(window);
     283        ui_destroy(ui);
     284}
     285
    260286/** ui_window_get_res/gc/rect() return valid objects */
    261287PCUT_TEST(get_res_gc_rect)
Note: See TracChangeset for help on using the changeset viewer.