Changeset b71c0fc in mainline for uspace/lib/ui/test/fixed.c


Ignore:
Timestamp:
2020-11-07T16:07:22Z (3 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d55ab823
Parents:
fa01c05
Message:

Make fixed layout a UI control and hook it up to the window

File:
1 edited

Legend:

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

    rfa01c05 rb71c0fc  
    8383}
    8484
     85/** ui_fixed_ctl() returns control that has a working virtual destructor */
     86PCUT_TEST(ctl)
     87{
     88        ui_fixed_t *fixed;
     89        ui_control_t *control;
     90        errno_t rc;
     91
     92        rc = ui_fixed_create(&fixed);
     93        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
     94
     95        control = ui_fixed_ctl(fixed);
     96        PCUT_ASSERT_NOT_NULL(control);
     97
     98        ui_control_destroy(control);
     99}
     100
    85101/** ui_fixed_add() / ui_fixed_remove() adds/removes control */
    86102PCUT_TEST(add_remove)
Note: See TracChangeset for help on using the changeset viewer.