Plan recording export progress dialog
This commit is contained in:
@@ -111,6 +111,17 @@ void recording_export_tracks_frame_count(pp::tests::Harness& harness)
|
||||
PP_EXPECT(harness, plan.progress_total == 120);
|
||||
}
|
||||
|
||||
void recording_export_progress_dialog_preserves_legacy_title(pp::tests::Harness& harness)
|
||||
{
|
||||
const auto export_plan = pp::app::plan_recording_export(7);
|
||||
const auto progress = pp::app::plan_recording_export_progress_dialog(export_plan);
|
||||
|
||||
PP_EXPECT(harness, progress.title == "Exporting MP4 movie");
|
||||
PP_EXPECT(harness, progress.total == 7);
|
||||
PP_EXPECT(harness, progress.count == 0);
|
||||
PP_EXPECT(harness, progress.progress_fraction == 0.0F);
|
||||
}
|
||||
|
||||
void recording_export_clamps_progress_total(pp::tests::Harness& harness)
|
||||
{
|
||||
const auto too_many_frames = static_cast<std::size_t>(std::numeric_limits<int>::max()) + 1U;
|
||||
@@ -198,6 +209,9 @@ int main()
|
||||
"recording clear resets frames and preserves platform delete flag",
|
||||
recording_clear_resets_frames_and_preserves_platform_delete_flag);
|
||||
harness.run("recording export tracks frame count", recording_export_tracks_frame_count);
|
||||
harness.run(
|
||||
"recording export progress dialog preserves legacy title",
|
||||
recording_export_progress_dialog_preserves_legacy_title);
|
||||
harness.run("recording export clamps progress total", recording_export_clamps_progress_total);
|
||||
harness.run("recording worker iteration encodes only when ready", recording_worker_iteration_encodes_only_when_ready);
|
||||
harness.run("executor dispatches recording lifecycle", executor_dispatches_recording_lifecycle);
|
||||
|
||||
Reference in New Issue
Block a user