import { describe, it, expect } from "vitest"; import { FRAME_SANDBOX, frameDocument, frameResponse, nextFrameHeight, START_HEIGHT } from "./frameHtml"; // add-custom-html-block: pasted HTML runs sealed, in its own document with a sandbox policy, and reports its height. describe("frameHtml", () => { it("grants scripts and pop-ups only", () => { expect(FRAME_SANDBOX.split(" ").sort()).toEqual(["allow-popups", "allow-popups-to-escape-sandbox", "allow-scripts"]); }); it("adds the height script before