Plan main toolbar message dialog

This commit is contained in:
2026-06-05 10:10:31 +02:00
parent 903fe2d5a1
commit 407297dc2e
8 changed files with 71 additions and 12 deletions

View File

@@ -82,6 +82,17 @@ void direct_dialog_commands_are_available(pp::tests::Harness& harness)
}
}
void message_box_dialog_preserves_legacy_defaults(pp::tests::Harness& harness)
{
const auto plan = pp::app::plan_main_toolbar_message_dialog();
PP_EXPECT(harness, plan.title == "Just a test message");
PP_EXPECT(harness, plan.message == "Longer description for the error or the message.");
PP_EXPECT(harness, plan.ok_caption == "Ok");
PP_EXPECT(harness, plan.cancel_caption == "Cancel");
PP_EXPECT(harness, plan.show_cancel);
}
void history_commands_reuse_history_breakpoints(pp::tests::Harness& harness)
{
const auto undo = pp::app::plan_main_toolbar_command(pp::app::MainToolbarCommand::undo, 2);
@@ -217,6 +228,7 @@ int main()
{
pp::tests::Harness harness;
harness.run("direct dialog commands are available", direct_dialog_commands_are_available);
harness.run("message box dialog preserves legacy defaults", message_box_dialog_preserves_legacy_defaults);
harness.run("history commands reuse history breakpoints", history_commands_reuse_history_breakpoints);
harness.run("canvas clear requires live canvas", canvas_clear_requires_live_canvas);
harness.run("rejects negative history metrics", rejects_negative_history_metrics);