test(analysis): a project with the highlight knee off keeps it off after light analysis
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
1 file changed
+7
-1
@@ -30,7 +30,12 @@ public sealed class AnalysisJobTests(TestContext context)
|
||||
await using var fx = await ProcessingFixture.CreateAsync(context);
|
||||
var sequence = await fx.AddAsync(Flickering());
|
||||
var manual = new ProjectSettings();
|
||||
manual = manual with { Timing = manual.Timing with { FrameRate = manual.Timing.FrameRate.WithManual("25") } };
|
||||
// The user's frame rate, and the highlight knee turned off (hard clip).
|
||||
manual = manual with
|
||||
{
|
||||
Timing = manual.Timing with { FrameRate = manual.Timing.FrameRate.WithManual("25") },
|
||||
Exposure = manual.Exposure with { HighlightKnee = null },
|
||||
};
|
||||
await fx.Db.Sequences.EditAsync(sequence.Id, new SequenceEdit { SettingsJson = manual.ToJson() }, null, fx.Ct);
|
||||
await fx.StartEngineAsync();
|
||||
|
||||
@@ -40,6 +45,7 @@ public sealed class AnalysisJobTests(TestContext context)
|
||||
var folder = fx.Folder(sequence);
|
||||
var project = ProjectSettings.FromJson(await File.ReadAllTextAsync(folder.ProjectPath, fx.Ct));
|
||||
Assert.Equal((false, "25"), (project.Timing.FrameRate.IsAuto, project.Timing.FrameRate.Resolve("30")));
|
||||
Assert.Null(project.Exposure.HighlightKnee);
|
||||
Assert.True(project.Timing.Mode.HasAdvice, "timing mode advised");
|
||||
Assert.True(project.Timing.FrameRate.HasAdvice, "the advice is kept next to the manual frame rate");
|
||||
var row = (await fx.Db.Sequences.GetAsync(sequence.Id, fx.Ct))!;
|
||||
|
||||
Reference in new issue
Block a user