diff options
| author | Gabriel Schneider <[email protected]> | 2026-08-16 15:49:12 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-08-18 23:44:42 -0300 |
| commit | 1551e409c31992437cb2fa864f576d45c8433801 (patch) | |
| tree | e2fae8451f87b735a1360c7c2e383fdc40165789 /test/web_snapshot.mjs | |
| parent | be2a9957708cbf0c478ca861c4a1f0f227bbfe10 (diff) | |
| download | pardes-1551e409c31992437cb2fa864f576d45c8433801.tar.gz pardes-1551e409c31992437cb2fa864f576d45c8433801.zip | |
big slow change: prebuilt shaders (SPIR-V/Metal), core gui reflow, docs, web + snapshot refresh
Diffstat (limited to 'test/web_snapshot.mjs')
| -rw-r--r-- | test/web_snapshot.mjs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/web_snapshot.mjs b/test/web_snapshot.mjs index 4c50956e..df42b1c5 100644 --- a/test/web_snapshot.mjs +++ b/test/web_snapshot.mjs @@ -300,8 +300,15 @@ async function waitForRuntime(timeout) { if (!app?.test?.grid()?.cols || document.querySelector("canvas")) return false; const want = app.runtime.gridSize(); const frame = app.test.grid(); + const tagline = document.querySelector(".pardes-cell.is-tagline"); + const body = document.querySelector(".pardes-cell:not(.is-tagline)"); + if (!tagline || !body) return false; + const tagRect = tagline.getBoundingClientRect(); + const bodyRect = body.getBoundingClientRect(); return frame.cols === want.cols && frame.rows === want.rows && - document.querySelectorAll(".pardes-row").length === want.rows; + document.querySelectorAll(".pardes-row").length === want.rows && + tagRect.width === bodyRect.width && tagRect.height === bodyRect.height && + parseFloat(getComputedStyle(tagline).fontSize) < parseFloat(getComputedStyle(body).fontSize); })()`); } catch { return false; |
