Changeset 5e221a77 in mainline
- Timestamp:
- 2021-10-24T22:04:28Z (3 years ago)
- Children:
- 1455ea1
- Parents:
- 8922b76
- Location:
- uspace/app/nav
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/nav/panel.c
r8922b76 r5e221a77 353 353 /* Move to the entry found */ 354 354 panel_cursor_move(panel, entry, entry_idx); 355 } else { 356 /* It's in the border. Top or bottom half? */ 357 if (pos.y >= (irect.p0.y + irect.p1.y) / 2) 358 panel_page_down(panel); 359 else 360 panel_page_up(panel); 355 361 } 356 362 } -
uspace/app/nav/test/panel.c
r8922b76 r5e221a77 279 279 PCUT_ASSERT_INT_EQUALS(3, panel->cursor->size); 280 280 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 281 291 panel_destroy(panel); 282 292 ui_window_destroy(window);
Note:
See TracChangeset
for help on using the changeset viewer.