docs(tests): clarify workspace and legacy model test coverage
This commit is contained in:
@@ -11,6 +11,7 @@ import { resizeFromPointer } from "../src/lib/canvas-geometry.ts";
|
||||
function seeded() { return { ...emptyCanvas(), nodes: [makeCanvasNode("text", { x: 100, y: 200 })] }; }
|
||||
|
||||
// 从同一父节点分别创建 text/script/image,检查连线端口、图片源、快照往返,再用一次 replace 历史整体撤销。
|
||||
// 图片只传符合字符串语法的 data URL,没有上传或图片解码;该断言不验证文件内容可显示。
|
||||
test("branch type selection creates the chosen text, script or uploaded image and keeps the link in one undo step", () => {
|
||||
for (const kind of ["text", "script", "image"]) {
|
||||
const original = seeded();
|
||||
|
||||
Reference in New Issue
Block a user