Skip to content

Commit

Permalink
AppMinimal: fixed capturing tests. (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocornut committed Mar 3, 2025
1 parent 8cd89b4 commit 7f1ac30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app_minimal/app_minimal_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ void RegisterAppMinimalTests(ImGuiTestEngine* e)
ctx->SetRef("Dear ImGui Demo");
ctx->ItemOpen("Widgets"); // Open collapsing header
ctx->ItemOpenAll("Basic"); // Open tree node and all its descendant
ctx->CaptureScreenshotWindow("Dear ImGui Demo", ImGuiCaptureFlags_StitchAll | ImGuiCaptureFlags_HideMouseCursor);
ctx->CaptureScreenshotWindow("//Dear ImGui Demo", ImGuiCaptureFlags_StitchAll | ImGuiCaptureFlags_HideMouseCursor);
};

t = IM_REGISTER_TEST(e, "demo_tests", "capture_video");
Expand All @@ -94,7 +94,7 @@ void RegisterAppMinimalTests(ImGuiTestEngine* e)
ctx->ItemCloseAll("");
ctx->MouseTeleportToPos(ctx->GetWindowByRef("")->Pos);

ctx->CaptureAddWindow("Dear ImGui Demo"); // Optional: Capture single window
ctx->CaptureAddWindow("//Dear ImGui Demo"); // Optional: Capture single window
ctx->CaptureBeginVideo();
ctx->ItemOpen("Widgets");
ctx->ItemInputValue("Basic/input text", "My first video!");
Expand Down

0 comments on commit 7f1ac30

Please sign in to comment.