A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
test(ui): type the required layout measurement in the WASM regression
yhhecd0cad08def
diff --git a/sdk/tests/ui-list-view-widget.test.ts b/sdk/tests/ui-list-view-widget.test.tsindex a054c8f6e..5de621a71 100644--- a/sdk/tests/ui-list-view-widget.test.ts+++ b/sdk/tests/ui-list-view-widget.test.ts@@ -159,7 +159,7 @@ describe.skipIf(!HAS_WASM)('createListView (WASM integration)', () => {});try {module.uiLayout_update(registry, 0, 0, 800, 600, true);- expect(module.getUINodeComputedHeight(registry, list.entity)).toBe(140);+ expect(module.getUINodeComputedHeight!(registry, list.entity)).toBe(140);await app.tick(1 / 60);expect(list.scroll.getViewportSize()).toEqual({ x: 180, y: 140 });const node = app.world.get(parent, UINode) as UINodeData;diff --git a/tools/releaseNotes.mjs b/tools/releaseNotes.mjsindex 813cc700e..4b9ae75db 100644--- a/tools/releaseNotes.mjs+++ b/tools/releaseNotes.mjs@@ -28,6 +28,8 @@ export const NOTES_FLOOR = 'v0.65.0';* the reader recognises anyway.*/export const NOTED = {+ 'test(ui): type the required layout measurement in the WASM regression':+ { internal: 'The real-WASM viewport regression requires the measured-height export; its non-null type assertion matches the verified test precondition without changing runtime code.' },'fix(ui): synchronize virtualized lists with resolved viewport bounds':{ note: 'Virtualized lists follow their resolved UI viewport.' },'fix(samples): keep virtualized UI inside device safe areas':