Retain clone regression fixtures across asynchronous writes

这个提交包含在:
mac 于 2026-11-05 23:53:30 +08:00 提交
1 父节点 5032ce70ab
当前提交 b2601ac9b0
1 个文件已更改
+3 -2
@@ -121,7 +121,8 @@
[[(id)osc valueForKey:@"stampSaving"]boolValue]&&[[viewer valueForKey:@"stampArmed"]boolValue]&&
[[(id)osc valueForKey:@"stampHasSource"]boolValue]&&!DYSharedMasks(DYReadTools(base,kCMTimeZero).document).count);
drain();
NSDictionary *stamp=[DYSharedMasks(DYReadTools(host,kCMTimeZero).document) firstObject];NSArray *source=stamp[@"stampSource"];
NSDictionary *stamp=[DYSharedMasks(DYReadTools(host,kCMTimeZero).document) firstObject];
NSArray *source=[[stamp[@"stampSource"]copy]autorelease];
DYMaskParameters target=DYMaskAtTime(stamp,kCMTimeZero);
run.record(@"native-osc-creates-one-stamp-and-one-undo-from-source-click-and-drag",source.count==4&&fabs([source[0]doubleValue]-.25)<1e-6&&fabs([source[1]doubleValue]-.25)<1e-6&&fabs(target.centerX-.65)<1e-6&&fabs(target.centerY-.5)<1e-6&&base->_undoStarts==undo+1&&base->_undoEnds==undo+1);
run.record(@"native-osc-stamp-selects-saved-overlay-when-action-time-differs",
@@ -164,7 +165,7 @@
click(251,104);drain(); // top-down viewport y=30...345, forward button is x=212...290.
run.record(@"native-osc-stamp-forward-action-starts-the-existing-host-tracker",host->_forwardStarts==1&&host->_backwardStarts==0);
[plugin cleanupAnalysis:nil];drain();
NSDictionary *beforeRejected=DYReadTools(base,kCMTimeZero).document;
NSDictionary *beforeRejected=[[DYReadTools(base,kCMTimeZero).document copy]autorelease];
base->_rejectToolsWrites=YES;
click(NSMidX(button),400-NSMidY(button));
click(180,291.25);