Add comprehensive tests for EditSection functionality in the Windows application
- Implement tests for picker behavior, including loading sequences, searching, and handling empty libraries. - Validate sequence opening via Enter key and double-click actions. - Ensure proper handling of unsaved edits and sequence deletion scenarios. - Verify accessibility features for picker rows across different languages. - Introduce a dialog counting mechanism to manage unsaved edit confirmations.
This commit is contained in:
1 parent
4ea44bb917
commit
5aeb6aa787
214 files changed
+6547
-826
No files matched your search
@@ -435,7 +435,7 @@ internal sealed class AdvisorRules
|
||||
return;
|
||||
}
|
||||
var shake = _deep.Shake;
|
||||
if (shake.MeasuredFraction < 0.5)
|
||||
if (shake.MeasuredFraction < ShakeSummary.MinMeasuredFraction)
|
||||
{
|
||||
Missing(section, AdvisorParameters.Stabilize, AdvisorKeys.MissingShake, R(100 * shake.MeasuredFraction, 0));
|
||||
return;
|
||||
|
||||
@@ -89,7 +89,14 @@ public sealed record WhiteBalanceSummary(double JitterLog2, double DriftLog2, do
|
||||
/// <param name="CropCost">Area fraction a centred crop must give up to hide every correction.</param>
|
||||
/// <param name="PanPxPerFrame">Average drift of the smoothed path.</param>
|
||||
/// <param name="MeasuredFraction">Share of frame pairs whose shift could be measured (textured patches).</param>
|
||||
public sealed record ShakeSummary(double RmsPx, double MaxPx, double CropCost, double PanPxPerFrame, bool PanDetected, double MeasuredFraction);
|
||||
public sealed record ShakeSummary(double RmsPx, double MaxPx, double CropCost, double PanPxPerFrame, bool PanDetected, double MeasuredFraction)
|
||||
{
|
||||
/// <summary>
|
||||
/// Below this share of measured frame pairs the shake is unknown: the advisor decides nothing about stabilisation and
|
||||
/// the editor shows no shake value (unmeasured shifts count as none, so the path would look steadier than it is).
|
||||
/// </summary>
|
||||
public const double MinMeasuredFraction = 0.5;
|
||||
}
|
||||
|
||||
/// <param name="MedianPx">Median of the sampled pairs' median flow magnitude, source px per frame.</param>
|
||||
/// <param name="P95Px">Median of the sampled pairs' 95th-percentile magnitude: the typical speed of moving content.</param>
|
||||
|
||||
Reference in new issue
Block a user