readest/apps/readest.koplugin/scripts
Huang Xin 4023867745
test(kosync): check both xpointer forms against crengine at two DOM versions (#7178)
crengine 137cba4 writes [1] on every step only for books opened at DOM
version 20260812 or later. Books KOReader opened before keep their older
version and the unindexed form, so both forms stay in use.

The oracle script takes the DOM version as a fourth argument and checks
that crengine reads each pointer the same with its [1]s dropped, the form
Readest writes. New fixtures for the four oracle books were dumped from
the KOReader emulator with 137cba4 cherry-picked, at 20260812. The
20240114 dumps from the same build match the committed fixtures exactly.
The EPUB oracle now pulls through getCFIFromXPointerRange, the path the
sync hooks use.

Verified:
- oracle test with this PR's xcfi.ts: 8 passed
- with main's xcfi.ts: the 4 new fixtures fail "KOReader -> Readest:
  707/707, 108/108, 19/19, 160/160 mismatches"; the 4 old ones pass
- unindexed_mismatches is empty in every new fixture
- xcfi and kosyncProgress suites: 98 passed; pnpm lint and
  pnpm format:check clean

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 10:02:43 +01:00
..
build-koplugin.mjs fix(koplugin): honour BookDrop goodbyes and un-dangle the localsend pin (#6050) 2026-09-04 10:42:04 +08:00
build-localsend-bins.mjs chore(koplugin): build nightly plugin zip and default to device targets (#5699) 2026-08-14 09:49:25 +02:00
extract-i18n.js feat(koreader): background sync, group downloads, and library controls (#6321) 2026-09-20 09:08:31 +02:00
lint-koplugin.mjs feat(koplugin): Readest Library view in KOReader (#4056) 2026-05-04 23:12:34 +02:00
test-koplugin.mjs feat(koplugin): Readest Library view in KOReader (#4056) 2026-05-04 23:12:34 +02:00
xpointer-oracle.lua test(kosync): check both xpointer forms against crengine at two DOM versions (#7178) 2026-10-31 10:02:43 +01:00