feat: add render graph driven renderer architecture

Amp-Thread-ID: https://ampcode.com/threads/T-019f9d91-77c1-7206-a60f-ed6554ce92ab

Co-authored-by: Heaust Azure <heaust.azure@gmail.com>
This commit is contained in:
Amp
2026-07-27 02:53:44 +00:00
co-authored by heaust
parent 8a8369706b
commit d4e8634f67
290 changed files with 48804 additions and 1995 deletions
+28
View File
@@ -0,0 +1,28 @@
import { expect, test } from "@playwright/test";
test("renderer paints composition-resolved background, header, socket, and link colors", async ({ page }) => {
const errors: string[] = [];
page.on("pageerror", (error) => errors.push(error.message));
await page.goto("/test/browser/presentation-render.html");
await page.waitForTimeout(500);
expect(errors).toEqual([]);
const result = await page.evaluate(
() =>
(
window as unknown as {
presentationResult: {
background: number[];
header: number[];
socket: number[];
linkContainsCustomColor: boolean;
};
}
).presentationResult,
);
expect(result).toEqual({
background: [1, 2, 3, 255],
header: [118, 84, 171, 255],
socket: [161, 178, 195, 255],
linkContainsCustomColor: true,
});
});