Validate all standalone modules and fix endpoint test for letterboxed host coordinates

这个提交包含在:
mac 于 2026-11-06 12:26:38 +08:00 提交
1 父节点 dc5769492d
当前提交 27ba2b53ca
2 个文件已更改
+30 -2

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

@@ -264,8 +264,10 @@ if(faceFixture.length){
run.record(@"level-placed-line-is-persisted-with-reference-points",[savedLevel[@"levelReference"][@"points"]count]==4&&[[(id)osc valueForKey:@"levelPlaced"]boolValue]);
[osc drawOSCWithWidth:640 height:400 activePart:0 destinationImage:overlay atTime:kCMTimeZero];
NSPoint lineFirst=[[(id)osc valueForKey:@"levelFirst"]pointValue];
DYLevelTransform transform(angle(),640./400.);NSPoint display=transform.toOutput(lineFirst);
NSInteger endpoint=down(display.x*640,400-display.y*400);up(display.x*640+6,400-display.y*400+10,endpoint);drain();
NSRect imageRect=[[(id)osc valueForKey:@"imageRect"]rectValue];
DYLevelTransform transform(angle(),NSWidth(imageRect)/NSHeight(imageRect));NSPoint display=transform.toOutput(lineFirst);
double endpointX=NSMinX(imageRect)+display.x*NSWidth(imageRect),endpointY=400-NSMinY(imageRect)-display.y*NSHeight(imageRect);
NSInteger endpoint=down(endpointX,endpointY);up(endpointX+6,endpointY+10,endpoint);drain();
run.record(@"level-retained-endpoint-edits-with-one-undo",endpoint==10016&&base->_undoStarts==undo+2&&base->_undoEnds==undo+2&&![DYReadTools(host,kCMTimeZero).document[@"levelReference"]isEqual:savedLevel[@"levelReference"]]);
control(20034);drain();
run.record(@"level-measure-toggle-preserves-line-and-angle",[DYReadTools(host,kCMTimeZero).document[@"levelMeasureOnly"]boolValue]&&[DYReadTools(host,kCMTimeZero).document[@"levelReference"][@"points"]count]==4);