Changeset 9ee55cd in mainline for uspace/app/nav/test/panel.c


Ignore:
Timestamp:
2021-10-25T00:32:45Z (3 years ago)
Author:
jxsvoboda <5887334+jxsvoboda@…>
Branches:
master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d0fd86a
Parents:
e0377075
git-author:
Jiri Svoboda <jiri@…> (2021-10-24 22:04:28)
git-committer:
jxsvoboda <5887334+jxsvoboda@…> (2021-10-25 00:32:45)
Message:

Page up/down by mouse click on panel border

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/nav/test/panel.c

    re0377075 r9ee55cd  
    279279        PCUT_ASSERT_INT_EQUALS(3, panel->cursor->size);
    280280
     281        /* Clicking on the top edge should do a page-up */
     282        event.hpos = 1;
     283        event.vpos = 0;
     284        claimed = panel_pos_event(panel, &event);
     285        PCUT_ASSERT_EQUALS(ui_claimed, claimed);
     286
     287        PCUT_ASSERT_NOT_NULL(panel->cursor);
     288        PCUT_ASSERT_STR_EQUALS("a", panel->cursor->name);
     289        PCUT_ASSERT_INT_EQUALS(1, panel->cursor->size);
     290
    281291        panel_destroy(panel);
    282292        ui_window_destroy(window);
Note: See TracChangeset for help on using the changeset viewer.