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


Ignore:
Timestamp:
2022-05-20T12:05:26Z (2 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0415776
Parents:
ea9024d7
git-author:
Jiri Svoboda <jiri@…> (2022-05-19 18:05:08)
git-committer:
Jiri Svoboda <jiri@…> (2022-05-20 12:05:26)
Message:

Scrollbar buttons should not depress in text mode

File:
1 edited

Legend:

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

    rea9024d7 r8b22d44  
    11/*
    2  * Copyright (c) 2021 Jiri Svoboda
     2 * Copyright (c) 2022 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    133133}
    134134
     135/** Set flags sets internal field */
     136PCUT_TEST(set_flags)
     137{
     138        ui_pbutton_t *pbutton;
     139        errno_t rc;
     140
     141        rc = ui_pbutton_create(NULL, "Hello", &pbutton);
     142        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
     143
     144        ui_pbutton_set_flags(pbutton, ui_pbf_no_text_depress);
     145        PCUT_ASSERT_INT_EQUALS(ui_pbf_no_text_depress, pbutton->flags);
     146
     147        ui_pbutton_destroy(pbutton);
     148}
     149
    135150/** Set button rectangle sets internal field */
    136151PCUT_TEST(set_rect)
Note: See TracChangeset for help on using the changeset viewer.