mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
cre: add Word Gap setting to bottom config panel (#4026)
Maps to crengine's Space Condensing feature (named Word Gap as a similar feature is named for PDF)
This commit is contained in:
@@ -17,8 +17,8 @@ describe("ReaderLink module", function()
|
||||
document = DocumentRegistry:openDocument(sample_epub),
|
||||
}
|
||||
readerui.rolling:onGotoPage(4)
|
||||
readerui.link:onTap(nil, {pos = {x = 336, y = 668}})
|
||||
assert.is.same(36, readerui.rolling.current_page)
|
||||
readerui.link:onTap(nil, {pos = {x = 306, y = 710}})
|
||||
assert.is.same(37, readerui.rolling.current_page)
|
||||
end)
|
||||
|
||||
it("should jump to links in pdf page mode", function()
|
||||
@@ -54,8 +54,8 @@ describe("ReaderLink module", function()
|
||||
document = DocumentRegistry:openDocument(sample_epub),
|
||||
}
|
||||
readerui.rolling:onGotoPage(4)
|
||||
readerui.link:onTap(nil, {pos = {x = 336, y = 668}})
|
||||
assert.is.same(36, readerui.rolling.current_page)
|
||||
readerui.link:onTap(nil, {pos = {x = 306, y = 710}})
|
||||
assert.is.same(37, readerui.rolling.current_page)
|
||||
readerui.link:onGoBackLink()
|
||||
assert.is.same(4, readerui.rolling.current_page)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user