Skip to content

Tests: Add SliderFloatRange2/SliderIntRange2 tests#88

Open
Entrpi wants to merge 1 commit intoocornut:mainfrom
Entrpi:tests/slider-range2
Open

Tests: Add SliderFloatRange2/SliderIntRange2 tests#88
Entrpi wants to merge 1 commit intoocornut:mainfrom
Entrpi:tests/slider-range2

Conversation

@Entrpi
Copy link
Copy Markdown

@Entrpi Entrpi commented Jan 12, 2026

Tests for the new SliderRange2 widgets proposed in ocornut/imgui#9164.

Tests added:

  • widgets_slider_range2_overlap_resolve - Overlapping handles resolution by drag direction
  • widgets_slider_range2_text_input - Ctrl+Click text input with "..." separator
  • widgets_slider_range2_text_input_dash - Ctrl+Click text input with " - " separator
  • widgets_slider_range2_no_cross - Handles can't cross constraint
  • widgets_slider_range2_int - Integer range slider text input

All tests pass with the current SliderRange2 implementation.

Related: ocornut/imgui#9164

Tests for the new SliderRange2 widgets (ocornut/imgui#9164):
- Overlapping handles resolution by drag direction
- Ctrl+Click text input with "..." separator
- Ctrl+Click text input with " - " separator
- Handles can't cross constraint
- Integer range slider text input
@Entrpi Entrpi force-pushed the tests/slider-range2 branch from 1ccb6fa to f999fe8 Compare January 12, 2026 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant