Expand render graph playground editing
Amp-Thread-ID: https://ampcode.com/threads/T-01a033d4-0e44-708e-af0e-6166283416ff Co-authored-by: Heaust Azure <heaust.azure@gmail.com>
This commit is contained in:
+13
-6
@@ -25,10 +25,16 @@ test("canvas-free authority owns independent attachable views", async ({ page })
|
||||
else if (message.type === "view.attach") {
|
||||
// Exercise the valid event-before-acknowledgement ordering.
|
||||
this.emit({
|
||||
protocol: 3,
|
||||
protocol: 4,
|
||||
type: "view.selection.host",
|
||||
viewId: message.viewId,
|
||||
projection: { nodeCount: 0, linkCount: 0, canRemove: false, mute: { enabled: false } },
|
||||
projection: {
|
||||
nodeIds: [],
|
||||
nodeCount: 0,
|
||||
linkCount: 0,
|
||||
canRemove: false,
|
||||
mute: { enabled: false },
|
||||
},
|
||||
});
|
||||
this.respond(message.id);
|
||||
} else if (message.type === "view.detach") this.respond(message.id);
|
||||
@@ -50,7 +56,7 @@ test("canvas-free authority owns independent attachable views", async ({ page })
|
||||
settleViewport(ok: boolean): void {
|
||||
const id = this.heldViewportIds.shift()!;
|
||||
this.emit({
|
||||
protocol: 3,
|
||||
protocol: 4,
|
||||
type: "response",
|
||||
id,
|
||||
ok,
|
||||
@@ -60,7 +66,7 @@ test("canvas-free authority owns independent attachable views", async ({ page })
|
||||
|
||||
private respond(id: string, value?: unknown): void {
|
||||
this.emit({
|
||||
protocol: 3,
|
||||
protocol: 4,
|
||||
type: "response",
|
||||
id,
|
||||
ok: true,
|
||||
@@ -100,10 +106,11 @@ test("canvas-free authority owns independent attachable views", async ({ page })
|
||||
duplicateCode = (error as { code?: string }).code ?? "";
|
||||
}
|
||||
worker.emit({
|
||||
protocol: 3,
|
||||
protocol: 4,
|
||||
type: "view.selection.host",
|
||||
viewId: first.id,
|
||||
projection: {
|
||||
nodeIds: ["selected-node"],
|
||||
nodeCount: 1,
|
||||
linkCount: 0,
|
||||
canRemove: true,
|
||||
@@ -171,7 +178,7 @@ test("canvas-free authority owns independent attachable views", async ({ page })
|
||||
modifiers,
|
||||
});
|
||||
worker.emit({
|
||||
protocol: 3,
|
||||
protocol: 4,
|
||||
type: "view.resource.open",
|
||||
viewId: first.id,
|
||||
requestId: resourceOpenRequestId,
|
||||
|
||||
Reference in New Issue
Block a user