Changeset 8965860c in mainline for uspace/lib/ui/test/ui.c


Ignore:
Timestamp:
2022-03-23T18:35:16Z (2 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7ca7215
Parents:
d4ea1f6
Message:

Clickmatic

A class that periodically generates when held, after initial delay.
This is quite similar to the typematic feature found in PC keyboards.
We use it to automatically scroll when scrollbar button or through
is held.

File:
1 edited

Legend:

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

    rd4ea1f6 r8965860c  
    11/*
    2  * Copyright (c) 2020 Jiri Svoboda
     2 * Copyright (c) 2022 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    169169}
    170170
     171/** ui_lock(), ui_unlock() */
     172PCUT_TEST(lock_unlock)
     173{
     174        ui_t *ui = NULL;
     175        errno_t rc;
     176
     177        rc = ui_create_disp((display_t *)(-1), &ui);
     178        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
     179        PCUT_ASSERT_NOT_NULL(ui);
     180
     181        ui_lock(ui);
     182        ui_unlock(ui);
     183
     184        ui_destroy(ui);
     185}
     186
    171187PCUT_EXPORT(ui);
Note: See TracChangeset for help on using the changeset viewer.