()
| 2837 | |
| 2838 | #[test] |
| 2839 | fn scroll_empty_content() { |
| 2840 | // No lines at all: scroll should stay at 0 regardless of delta. |
| 2841 | assert_eq!(clamped_scroll(0, 1, 0, 10), 0); |
| 2842 | assert_eq!(clamped_scroll(0, -1, 0, 10), 0); |
| 2843 | assert_eq!(clamped_scroll(0, 20, 0, 10), 0); |
| 2844 | } |
| 2845 | |
| 2846 | #[test] |
| 2847 | fn scroll_content_shorter_than_viewport() { |
nothing calls this directly
no outgoing calls
no test coverage detected