This commit is contained in:
John Factotum
2022-11-16 10:25:14 +08:00
committed by GitHub
parent d76027c00a
commit 7e5d21ffbe
+2 -2
View File
@@ -112,7 +112,7 @@ const XHTML = str => parser.parseFromString(str, 'application/xhtml+xml')
const cfi = `/4/10,/3:${i},/3:${i+1}`
const range = CFI.toRange(page, CFI.parse(cfi))
const n = `${i}`
console.assert(range.toString() === n, `expted ${n}, got ${range}`)
console.assert(range.toString() === n, `expected ${n}, got ${range}`)
}
}
test(page)
@@ -176,7 +176,7 @@ const XHTML = str => parser.parseFromString(str, 'application/xhtml+xml')
const cfi = `/4[body0^]!/1^^]/10[para^]/0^,^/5],/3:${i},/3:${i+1}`
const range = CFI.toRange(page, CFI.parse(cfi))
const n = `${i}`
console.assert(range.toString() === n, `expted ${n}, got ${range}`)
console.assert(range.toString() === n, `expected ${n}, got ${range}`)
}
}