Salah 0.6: restore user-confirmed smooth v0.3 native list
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
const assert = require('node:assert/strict')
|
||||
const fs = require('node:fs')
|
||||
const {execFileSync} = require('node:child_process')
|
||||
const src = fs.readFileSync('src/pages/index/index.ux','utf8')
|
||||
const baseline = execFileSync('git',['show','8e660f4:src/pages/index/index.ux'],{encoding:'utf8'})
|
||||
assert.ok(!/onscroll|onScroll|applyFocus|timeStyle|nameStyle|_scrolling|_scrollY/.test(src), 'remove the entire scroll-driven zoom path')
|
||||
assert.equal(src.match(/<list\b[\s\S]*?<\/list>/)[0], baseline.match(/<list\b[\s\S]*?<\/list>/)[0], 'native list markup matches user-confirmed smooth v0.3')
|
||||
assert.equal(src.match(/<script>[\s\S]*?<\/script>/)[0], baseline.match(/<script>[\s\S]*?<\/script>/)[0], 'page logic matches smooth v0.3')
|
||||
for(const name of ['prayers','spacer','row','rowName','rowTime','rowNext','nameNext','timeNext']) {
|
||||
const re = new RegExp('\\.'+name+'\\s*\\{[^}]+}')
|
||||
assert.equal(src.match(re)[0],baseline.match(re)[0],name+' uses proven static styling')
|
||||
}
|
||||
assert.ok(!src.includes('SWIPE TO SCROLL'))
|
||||
assert.match(src,/font-size: 50px;/,'keep enlarged header clock')
|
||||
console.log('Exact v0.3 list, row styles and script parity verified; zoom code absent; larger clock and no hint retained')
|
||||
Reference in New Issue
Block a user