Skip to content

Commit

Permalink
TestSuite: fixed build for branches without multi-select.
Browse files Browse the repository at this point in the history
  • Loading branch information
ocornut committed May 31, 2024
1 parent 6056cc3 commit 73a1806
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions imgui_test_suite/imgui_tests_widgets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3852,6 +3852,7 @@ void RegisterTests_Widgets(ImGuiTestEngine* e)
};

// ## Test MultiSelect API
// FIXME-MULTISELECT: maybe use BasicStorage?
struct ExampleSelection
{
ImGuiStorage Storage;
Expand Down Expand Up @@ -4731,10 +4732,9 @@ void RegisterTests_Widgets(ImGuiTestEngine* e)
};
#endif

#endif // #ifdef IMGUI_HAS_MULTI_SELECT

// ## Basic test for GetTypingSelectRequest()
// Technically this API doesn't require MultiSelect but it's easier for us to reuse that code.
// (under IMGUI_HAS_MULTI_SELECT as we also use this API + vars)
t = IM_REGISTER_TEST(e, "widgets", "widgets_typingselect");
t->SetVarsDataType<MultiSelectTestVars>();
struct TypingSelectTestFuncs
Expand Down Expand Up @@ -4833,6 +4833,7 @@ void RegisterTests_Widgets(ImGuiTestEngine* e)
ctx->Yield();
IM_CHECK(vars.Selection0.SelectionSize == 1 && vars.Selection0.GetSelected(2));
};
#endif // #ifdef IMGUI_HAS_MULTI_SELECT

// ## Test Selectable() with ImGuiSelectableFlags_SpanAllColumns inside Columns()
t = IM_REGISTER_TEST(e, "widgets", "widgets_selectable_span_all_columns");
Expand Down

0 comments on commit 73a1806

Please sign in to comment.