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


Ignore:
Timestamp:
2020-11-07T16:07:22Z (4 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/pbutton.c

    rfa01c05 rb71c0fc  
    3232#include <pcut/pcut.h>
    3333#include <stdbool.h>
     34#include <ui/control.h>
    3435#include <ui/pbutton.h>
    3536#include <ui/resource.h>
     
    104105{
    105106        ui_pbutton_destroy(NULL);
     107}
     108
     109/** ui_pbutton_ctl() returns control that has a working virtual destructor */
     110PCUT_TEST(ctl)
     111{
     112        ui_pbutton_t *pbutton;
     113        ui_control_t *control;
     114        errno_t rc;
     115
     116        rc = ui_pbutton_create(NULL, "Hello", &pbutton);
     117        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
     118
     119        control = ui_pbutton_ctl(pbutton);
     120        PCUT_ASSERT_NOT_NULL(control);
     121
     122        ui_control_destroy(control);
    106123}
    107124
Note: See TracChangeset for help on using the changeset viewer.