From a1dec84b731d51bfa85ad220ebd0188142019293 Mon Sep 17 00:00:00 2001 From: suzmii Date: Wed, 2 Sep 2026 16:37:43 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E8=AE=B0=E9=A2=84=E8=A7=88=E5=B0=BA?= =?UTF-8?q?=E5=AF=B8=E5=8F=8D=E9=A6=88=E7=8E=AF=E5=9B=9E=E5=BD=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 补充宿主首次应用 iframe viewport 后应保持当前适配结果的回归场景 --- .../ai-game-creator-shell/tests/localGamePreviewFrame.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/ai-game-creator-shell/tests/localGamePreviewFrame.test.ts b/apps/ai-game-creator-shell/tests/localGamePreviewFrame.test.ts index a5c93c5c1..0ed1fafe7 100644 --- a/apps/ai-game-creator-shell/tests/localGamePreviewFrame.test.ts +++ b/apps/ai-game-creator-shell/tests/localGamePreviewFrame.test.ts @@ -8,6 +8,10 @@ import { } from '../src/features/project-workspace/LocalGamePreviewFrame'; describe('local game preview viewport fitting', () => { + it.todo( + 'keeps the current fit while the iframe reports its first host-applied viewport measurement', + ); + it('keeps a game at native size when its content fits', () => { expect( resolveLocalGamePreviewFitLayout(