Skip to content

Commit ab6de4d

Browse files
committed
TestSuite: amend "widgets_tabbar_select"
1 parent 030cc99 commit ab6de4d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

imgui_test_engine/imgui_te_context.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -1809,6 +1809,7 @@ void ImGuiTestContext::MouseMove(ImGuiTestRef ref, ImGuiTestOpFlags flags)
18091809
item = ItemInfo(item.ID);
18101810

18111811
// Log message
1812+
// FIXME: Consider a second attempt?
18121813
ImVec2 pos_old = item_initial_state.RectFull.Min;
18131814
ImVec2 pos_new = item.RectFull.Min;
18141815
ImVec2 size_old = item_initial_state.RectFull.GetSize();

imgui_test_suite/imgui_tests_widgets.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -1552,6 +1552,7 @@ void RegisterTests_Widgets(ImGuiTestEngine* e)
15521552
vars.BoolArray[0] = vars.BoolArray[1] = vars.BoolArray[2] = true;
15531553
ctx->Yield();
15541554
ctx->Yield(); // Important: so tab layout are correct for TabClose()
1555+
ctx->Yield(); // Following "widgets_tabbar_select" // FIXME-TESTS: May be worth considering a second attempt in MouseMove() when item has moved?
15551556
IM_CHECK(tab_bar->Tabs.Size == 3);
15561557
IM_CHECK_STR_EQ(ImGui::TabBarGetTabName(tab_bar, &tab_bar->Tabs[0]), "Tab 0");
15571558
IM_CHECK_STR_EQ(ImGui::TabBarGetTabName(tab_bar, &tab_bar->Tabs[1]), "Tab 1");

0 commit comments

Comments
 (0)