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


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

Create UI controls based on UI object instead of based on UI resource

We want to be a bit more generic. Better not expose UI resource
(at least not in this particular case).

File:
1 edited

Legend:

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

    rd55ab823 r8c772c4  
    3535#include <stdbool.h>
    3636#include <ui/control.h>
    37 #include <ui/resource.h>
    3837#include <ui/ui.h>
    3938#include <ui/window.h>
     
    174173}
    175174
    176 /** ui_window_get_res/gc/rect() return valid objects */
    177 PCUT_TEST(get_res_gc_rect)
    178 {
    179         errno_t rc;
    180         ui_t *ui = NULL;
    181         ui_wnd_params_t params;
    182         ui_window_t *window = NULL;
    183         ui_resource_t *res;
     175/** ui_window_get_gc/rect() return valid objects */
     176PCUT_TEST(gc_rect)
     177{
     178        errno_t rc;
     179        ui_t *ui = NULL;
     180        ui_wnd_params_t params;
     181        ui_window_t *window = NULL;
    184182        gfx_context_t *gc;
    185183        gfx_rect_t rect;
     
    194192        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    195193        PCUT_ASSERT_NOT_NULL(window);
    196 
    197         res = ui_window_get_res(window);
    198         PCUT_ASSERT_NOT_NULL(res);
    199194
    200195        gc = ui_window_get_gc(window);
Note: See TracChangeset for help on using the changeset viewer.