(run: () => void)
| 72 | } |
| 73 | |
| 74 | function withStudioIframe(run: () => void): void { |
| 75 | const originalParent = window.parent; |
| 76 | Object.defineProperty(window, "parent", { |
| 77 | configurable: true, |
| 78 | value: {}, |
| 79 | }); |
| 80 | try { |
| 81 | run(); |
| 82 | } finally { |
| 83 | Object.defineProperty(window, "parent", { |
| 84 | configurable: true, |
| 85 | value: originalParent, |
| 86 | }); |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | describe("initSandboxRuntimeModular", () => { |
| 91 | const originalRequestAnimationFrame = window.requestAnimationFrame; |