Cover clone creation and tracking through real canvas callbacks

这个提交包含在:
mac 于 2026-11-05 21:47:25 +08:00 提交
1 父节点 213d01dbd8
当前提交 ca8a5433d3
2 个文件已更改
+39 -1

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

@@ -13,7 +13,11 @@
[document setObject:@[@"base"] forKey:@"removedBase"];
run.record(@"viewer-bridge-published-snapshot-is-immutable-and-frame-bound",[snapshot[@"uniforms"]length]==sizeof(DYUniforms)&&![snapshot[@"document"][@"removedBase"]count]&&![bridge snapshotAtTime:CMTimeMake(1,24)]);
int undo=base->_undoStarts;
[bridge beginParameter:exposure node:@"base:base" value:0 atTime:kCMTimeZero];[bridge changeValue:.4];drain();
[bridge beginParameter:exposure node:@"base:base" value:0 atTime:kCMTimeZero];[bridge changeValue:.4];
// Wait for the asynchronous write itself, allowing a busy test runner to
// service the main queue before asserting the still-open undo group.
double writeDeadline=NSProcessInfo.processInfo.systemUptime+.5;
while(fabs(value(exposure)-.4)>=1e-6&&NSProcessInfo.processInfo.systemUptime<writeDeadline)drain();
run.record(@"viewer-bridge-drag-writes-before-mouse-up-asynchronously",fabs(value(exposure)-.4)<1e-6&&base->_undoStarts==undo+1&&base->_undoEnds==undo);
[bridge changeValue:.8];[bridge endGesture];[bridge endGesture];drain();
run.record(@"viewer-bridge-continuous-drag-closes-one-host-undo-group",fabs(value(exposure)-.8)<1e-6&&base->_undoStarts==undo+1&&base->_undoEnds==undo+1);