d
This commit is contained in:
parent
c3a6f5ff37
commit
4c4e767ec6
73 changed files with 3502 additions and 741 deletions
|
|
@ -1,7 +1,7 @@
|
|||
'use strict';
|
||||
const {assert,functionSource,app,css,html,read,buildMeta}=require('./helpers/app-source');
|
||||
const packageVersion=JSON.parse(read('package.json')).version;
|
||||
assert(packageVersion===buildMeta.PACKAGE_VERSION&&buildMeta.APP_VERSION==='47.83','v47.83 canonical version marker is missing');
|
||||
assert(packageVersion===buildMeta.PACKAGE_VERSION&&buildMeta.APP_VERSION==='48.0','v47.84 canonical version marker is missing');
|
||||
|
||||
const sound=functionSource('playSound');
|
||||
assert(app.includes('SOUND_GAIN_MULTIPLIER=5.2')&&functionSource('soundTone').includes('Math.min(.42')&&functionSource('soundNoise').includes('Math.min(.24'),'Requested sound level increase is missing');
|
||||
|
|
@ -9,9 +9,7 @@ for(const kind of['grab','stretch','gate','clear','buy','reset','remove','shop',
|
|||
assert(functionSource('finalizeAtGate').includes("playSound('gate')")&&functionSource('removeDetachedPathAtOwnEndpoint').includes("playSound('remove')")&&functionSource('beginMinimapPointer').includes("playSound('shop')"),'New sound variants are not wired to gameplay events');
|
||||
|
||||
const makeBoard=functionSource('makeBoard');
|
||||
assert(makeBoard.includes("class:'active-board-boundary-layer'")&&makeBoard.includes("class:'active-board-boundary-shadow'")&&makeBoard.includes("class:'active-board-boundary-dash'"),'Active-board boundary layers are missing');
|
||||
assert(css.includes('.board-card.hud-current:not(.solved) .active-board-boundary-layer{display:block}')&&css.includes('@keyframes activeBoardOrbit')&&css.includes('@keyframes activeBoardBreathe'),'Active-board orbit/blink styling is missing');
|
||||
assert(css.includes('body.lightweight-rendering .active-board-boundary-layer{display:none!important}'),'Active-board boundary remains visible in lightweight rendering');
|
||||
assert(!makeBoard.includes('active-board-boundary')&&!css.includes('active-board-boundary')&&!css.includes('@keyframes activeBoardOrbit'),'Retired active-board orbit boundary remains');
|
||||
|
||||
assert(html.includes('<div class="modal-actions settings-actions"><button class="pill quiet" id="resetSettings"')&&html.includes('</button><button class="pill close" id="closeSettings"'),'Settings reset and close buttons are not adjacent in document order');
|
||||
assert(css.includes('.settings-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}')&&css.includes('.settings-actions .pill{flex:1 1 0;width:auto;margin:0!important}'),'Settings actions are not horizontally aligned');
|
||||
|
|
@ -35,4 +33,4 @@ assert(gatePoint.includes('if(g.internal)return[x,y]')&&outside.includes('if(g?.
|
|||
assert(makeBoard.includes("'aria-label':g.internal?`盤面内ゲート ${i+1}`")&&makeBoard.includes('gateHitBox(gp,g.side,g.internal)'),'Internal gates do not share normal gate input affordances');
|
||||
for(const name of['matchingNeighborGate','gateFrontierCandidates','missingGateConnections','placementConnectionRequirements'])assert(functionSource(name).includes('internalGates'),`${name} can misclassify an internal gate as a world-expansion gate`);
|
||||
|
||||
console.log('v47.83 audio, active-board emphasis, shop navigation, removal repaint, and internal-gate regression test passed');
|
||||
console.log('v47.84 audio, active-board emphasis, shop navigation, removal repaint, and internal-gate regression test passed');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue