Changeset fdf55a3 in mainline for uspace/lib/ui/test/filelist.c
- Timestamp:
- 2022-06-02T19:13:12Z (3 years ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 453f9645
- Parents:
- 03fc3a9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/test/filelist.c
r03fc3a9 rfdf55a3 283 283 PCUT_ASSERT_INT_EQUALS(2, flist->cursor->size); 284 284 285 /* Clicking below the last entry should select it */286 event.hpos = 20;287 event.vpos = 200;288 claimed = ui_file_list_pos_event(flist, &event);289 PCUT_ASSERT_EQUALS(ui_claimed, claimed);290 291 PCUT_ASSERT_NOT_NULL(flist->cursor);292 PCUT_ASSERT_STR_EQUALS("c", flist->cursor->name);293 PCUT_ASSERT_INT_EQUALS(3, flist->cursor->size);294 295 285 /* Clicking on the top edge should do a page-up */ 296 286 event.hpos = 20; … … 1014 1004 1015 1005 entry = ui_file_list_page_nth_entry(flist, 0, &idx); 1006 PCUT_ASSERT_NOT_NULL(entry); 1016 1007 PCUT_ASSERT_STR_EQUALS("b", entry->name); 1017 1008 PCUT_ASSERT_INT_EQUALS(1, idx); 1018 1009 1019 1010 entry = ui_file_list_page_nth_entry(flist, 1, &idx); 1011 PCUT_ASSERT_NOT_NULL(entry); 1020 1012 PCUT_ASSERT_STR_EQUALS("c", entry->name); 1021 1013 PCUT_ASSERT_INT_EQUALS(2, idx); 1022 1014 1023 1015 entry = ui_file_list_page_nth_entry(flist, 2, &idx); 1024 PCUT_ASSERT_STR_EQUALS("c", entry->name); 1025 PCUT_ASSERT_INT_EQUALS(2, idx); 1026 1027 entry = ui_file_list_page_nth_entry(flist, 3, &idx); 1028 PCUT_ASSERT_STR_EQUALS("c", entry->name); 1029 PCUT_ASSERT_INT_EQUALS(2, idx); 1016 PCUT_ASSERT_NULL(entry); 1030 1017 1031 1018 ui_file_list_destroy(flist);
Note:
See TracChangeset
for help on using the changeset viewer.