mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
test: update test to match the new crengine typesetting
This commit is contained in:
@@ -15,7 +15,7 @@ describe("ReaderLink module", function()
|
||||
document = DocumentRegistry:openDocument(sample_epub),
|
||||
}
|
||||
readerui.rolling:onGotoPage(4)
|
||||
readerui.link:onTap(nil, {pos = {x = 171, y = 27}})
|
||||
readerui.link:onTap(nil, {pos = {x = 336, y = 668}})
|
||||
assert.is.same(36, readerui.rolling.current_page)
|
||||
end)
|
||||
|
||||
@@ -35,7 +35,7 @@ describe("ReaderLink module", function()
|
||||
document = DocumentRegistry:openDocument(sample_epub),
|
||||
}
|
||||
readerui.rolling:onGotoPage(4)
|
||||
readerui.link:onTap(nil, {pos = {x = 171, y = 27}})
|
||||
readerui.link:onTap(nil, {pos = {x = 336, y = 668}})
|
||||
assert.is.same(36, readerui.rolling.current_page)
|
||||
readerui.link:onGoBackLink()
|
||||
assert.is.same(4, readerui.rolling.current_page)
|
||||
|
||||
Reference in New Issue
Block a user