Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/field.md
Original file line number Diff line number Diff line change
Expand Up @@ -838,3 +838,8 @@ Four of smoke part 1's checks had been failing since the Nov 28 changes, on `mai
hole must rise), so they are not drawn instead. Part 5 checks checkers, mini golf and Tetris by real clicks (in full screen, the menu hidden,
the fabric off, a tap on the board reaching the game, back by a double click or Escape); part 7's board lock check leaves the full screen
after each locking double.
Then (1 Dec 2026, the full smoke test): a double click on a board moved off its place (zoomed, panned) still puts it back first, as it did
(`framedAsDefault`, Oct 28; part 7's "double tap off default" caught it going full screen instead, and the full screen it left on then failed
the board lock check); the next double click, on the board square and in place, shows it full screen. The board lock check is as it was.
The same run's failures in part 4 (blockout's drag, Lights Out's clicks, Soma's tilt, a different one each run) came with other parts
running beside it; part 4 alone passed all 49.
5 changes: 4 additions & 1 deletion games.html
Original file line number Diff line number Diff line change
Expand Up @@ -17101,9 +17101,12 @@
// (Oct 31: a double tap on the board already framed, locked and square lets it go; else it frames the board and locks it there)
// (Dec 1: a double click on the board you are on shows it full screen, and again goes back: THE BOARD YOU ARE ON, FULL SCREEN; until then
// it let a framed, square board's lock go, Oct 31, which the menu's Board lock does)
// …but a board moved off its place is first put back, as ever (framedAsDefault, Oct 28; the full smoke test's "double tap off default"
// caught it going full screen instead): the next double on it, square and in place, shows it full screen
if (onFramed && FOCUS.on){ focusClose(); return; }
const _toFocus = onFramed && framedAsDefault();
if (!onFramed) gotoCell(gx, gz);
if (onFramed) focusOpen(); else zoomBoardToFit();
if (_toFocus) focusOpen(); else zoomBoardToFit();
target.active = true;
PAN.vx = PAN.vz = 0; setBoardLock(true);
/* …AND AN APP THAT PLAYS ON ITS FIRST TAP STARTS HERE TOO (Nov 2: "in mini-golf double click should set the golf-hole current. user
Expand Down
11 changes: 4 additions & 7 deletions tests/part7.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -590,11 +590,8 @@ try {
// away, and let go by the menu's Unlock the board)
const off = async () => { const m0 = await mid(); await page.mouse.move(m0.x, m0.y); await page.mouse.wheel(0, 500); await drawn(page, 1200); await page.evaluate(() => window.__settle()); };
await off();
// (Dec 1: the double on the board you are on also shows it full screen, THE BOARD YOU ARE ON, FULL SCREEN; it still locks it, and the checks
// below leave the full screen before they drag)
const unfocus = async () => { out.focused = (out.focused || 0) + (await page.evaluate(() => window.fieldFocus.on) ? 1 : 0); await page.evaluate(() => window.fieldFocus.close()); await drawn(page, 800); };
let m = await mid(); await dbl([m.x, m.y]);
out.locked = await page.evaluate(() => window.__boardLock()); await unfocus();
out.locked = await page.evaluate(() => window.__boardLock());
const c0 = await camX(); await drag(); const c1 = await camX();
out.heldStill = Math.hypot(c1[0] - c0[0], c1[1] - c0[1]) < 1e-6;
await page.evaluate(() => document.getElementById('bBoardLock').click());
Expand All @@ -604,7 +601,7 @@ try {
// a locked board holds only against a drag on it (Nov 1: "don't block panning of non-selected boards."): locked again, a drag that
// starts on another board (out at the screen's edge) pans the view and lets the lock go
await off(); m = await mid(); await dbl([m.x, m.y]);
out.relocked = await page.evaluate(() => window.__boardLock()); await unfocus();
out.relocked = await page.evaluate(() => window.__boardLock());
const c4 = await camX();
{ const x0 = 40, y0 = Math.round((await page.evaluate(() => innerHeight)) * 0.45); await page.mouse.move(x0, y0); await page.mouse.down();
for (let k = 1; k <= 8; k++){ await page.mouse.move(x0 + 18 * k, y0 + 6 * k); await page.waitForTimeout(40); } await page.mouse.up(); await frame(page, 300); }
Expand All @@ -613,7 +610,7 @@ try {
// TWO FINGERS AND THE WHEEL ARE NEVER LOCKED (Nov 4: "two finger panning and wheel should always work, don't lock them down."): locked
// again, a trackpad's two-finger scroll over the locked board still pans the view, and the lock stays
await off(); m = await mid(); await dbl([m.x, m.y]);
out.relocked2 = await page.evaluate(() => window.__boardLock()); await unfocus();
out.relocked2 = await page.evaluate(() => window.__boardLock());
const c6 = await camX();
await page.evaluate(([x, y]) => { const cv = document.querySelector('canvas'); for (let k = 0; k < 8; k++) cv.dispatchEvent(new WheelEvent('wheel', { bubbles: true, cancelable: true, clientX: x, clientY: y, deltaX: 14.5 + k * 0.25, deltaY: 6.25, deltaMode: 0 })); }, [m.x, m.y]);
await drawn(page, 400);
Expand All @@ -632,7 +629,7 @@ try {
}
item.on(); item.on(); item.on(); // (round to where it began)
return rows; });
if (!(out.focused === 3 && out.locked && out.heldStill && out.unlocked && out.pansAgain && out.relocked && out.otherPans && out.relocked2 && out.padPans && out.fly.every(r => r.want === r.got))) failures.push(`[${current}] ${JSON.stringify(out)}`);
if (!(out.locked && out.heldStill && out.unlocked && out.pansAgain && out.relocked && out.otherPans && out.relocked2 && out.padPans && out.fly.every(r => r.want === r.got))) failures.push(`[${current}] ${JSON.stringify(out)}`);
console.log(`${failures.length === before ? 'ok ' : 'FAIL'} board lock and difficulty flight (a real double tap locked the board and a real drag moved nothing, another let it go and the drag panned, and locked again a drag from another board panned and let the lock go; the Difficulty item went to levels ${out.fly.map(r => r.got).join('/')})`);
}
{
Expand Down