mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-04 02:14:01 +00:00
test: preserve the layout pass in the synthetic Cockpit fixture
This commit is contained in:
1 parent
b1e67a6a50
commit
0431dbb05e
1 file changed
+4
@@ -2031,6 +2031,10 @@ async function main() {
|
||||
};
|
||||
const waitForHudSettle = async () => {
|
||||
await new Promise((resolve) => setTimeout(resolve, 560));
|
||||
// The synthetic shell below stops the aircraft/context update loop.
|
||||
// Restore its layout pass after the HUD fade before measuring geometry;
|
||||
// qa-cockpit-utility exercises scheduling with the real controller.
|
||||
manager.cockpitView.scheduleContextLayout();
|
||||
await new Promise((resolve) => requestAnimationFrame(() => requestAnimationFrame(resolve)));
|
||||
};
|
||||
const prior = {
|
||||
|
||||
Reference in new issue
Block a user