Verify the stamp toolbar and skip unrelated film state work

这个提交包含在:
mac 于 2026-11-05 21:44:30 +08:00 提交
1 父节点 0782b5e654
当前提交 213d01dbd8
3 个文件已更改
+12 -2

没有与搜索条件相匹配的文件

@@ -12,7 +12,15 @@
publish();int undo=base->_undoStarts;NSDictionary *initial=[[base->_values copy]autorelease];
NSMutableSet *types=[NSMutableSet set];NSInteger masks=0;CGFloat lastX=-1,y=-1;BOOL horizontal=YES;
for(NSDictionary *a in [controls valueForKey:@"areas"]){if([a[@"kind"]isEqual:@"mask"])masks++;if([a[@"kind"]isEqual:@"tool"]){NSRect r=[a[@"rect"]rectValue];if(lastX>=0)horizontal&=r.origin.x>lastX&&r.origin.y==y;lastX=r.origin.x;y=r.origin.y;[types addObject:a[@"toolType"]];}}
run.record(@"viewer-lower-right-rail-has-five-image-tools-and-three-persistent-mask-shapes",horizontal&&lastX>size.width*.8&&y>size.height*.9&&[types isEqual:[NSSet setWithArray:@[@"curve",@"lens",@"skin",@"look",@"whiteBalance"]]]&&masks==3&&[[controls valueForKey:@"panels"]count]==0);
run.record(@"viewer-lower-right-rail-has-six-image-tools-and-three-persistent-mask-shapes",horizontal&&lastX>size.width*.8&&y>size.height*.9&&[types isEqual:[NSSet setWithArray:@[@"curve",@"lens",@"skin",@"look",@"whiteBalance",@"cloneStamp"]]]&&masks==3&&[[controls valueForKey:@"panels"]count]==0);
NSDictionary *stamp=areaFor(controls,@"tool",@"cloneStamp");
click(stamp);BOOL armed=controls.stampArmed;click(stamp);
run.record(@"viewer-stamp-arms-and-disarms-without-changing-the-grade",armed&&!controls.stampArmed&&[initial isEqual:base->_values]&&base->_undoStarts==undo);
[controls prepareWithSize:NSMakeSize(3840,2160) scale:2 atTime:host->_time];
NSRect overlay=[controls drawingBounds];
double fraction=NSWidth(overlay)*NSHeight(overlay)/(3840.*2160.);
run.record(@"viewer-idle-4k-toolbar-rasterizes-under-five-percent-of-the-canvas",fraction>0&&fraction<.05,@{@"canvasPixelFraction":@(fraction),@"overlayWidth":@(NSWidth(overlay)),@"overlayHeight":@(NSHeight(overlay))});
publish();
NSDictionary *workspace=areaFor(controls,@"workspace",nil);NSRect workspaceRect=[workspace[@"rect"]rectValue];
run.record(@"viewer-control-panel-entry-is-labelled-and-anchored-at-bottom",[workspace[@"title"]isEqual:@"控制面板"]&&NSMidY(workspaceRect)>size.height*.9);
__block NSInteger workspaceRequests=0;__block NSString *requestedPage=nil;__block NSInteger requestedMask=-1;