Changeset b71c0fc in mainline for uspace/lib/ui/test/label.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/label.c

    rfa01c05 rb71c0fc  
    3232#include <pcut/pcut.h>
    3333#include <stdbool.h>
     34#include <ui/control.h>
    3435#include <ui/label.h>
    3536#include <ui/resource.h>
     
    9596{
    9697        ui_label_destroy(NULL);
     98}
     99
     100/** ui_label_ctl() returns control that has a working virtual destructor */
     101PCUT_TEST(ctl)
     102{
     103        ui_label_t *label;
     104        ui_control_t *control;
     105        errno_t rc;
     106
     107        rc = ui_label_create(NULL, "Hello", &label);
     108        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
     109
     110        control = ui_label_ctl(label);
     111        PCUT_ASSERT_NOT_NULL(control);
     112
     113        ui_control_destroy(control);
    97114}
    98115
Note: See TracChangeset for help on using the changeset viewer.