mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
bump crengine: adds support for dpi-based css units (#4040)
Adds a new toggle to the bottom menu: Zoom (dpi), which allows for scaling CSS absolute units and image sizes.
This commit is contained in:
@@ -16,9 +16,9 @@ describe("ReaderLink module", function()
|
||||
local readerui = ReaderUI:new{
|
||||
document = DocumentRegistry:openDocument(sample_epub),
|
||||
}
|
||||
readerui.rolling:onGotoPage(4)
|
||||
readerui.link:onTap(nil, {pos = {x = 306, y = 710}})
|
||||
assert.is.same(37, readerui.rolling.current_page)
|
||||
readerui.rolling:onGotoPage(5)
|
||||
readerui.link:onTap(nil, {pos = {x = 326, y = 220}})
|
||||
assert.is.same(44, readerui.rolling.current_page)
|
||||
end)
|
||||
|
||||
it("should jump to links in pdf page mode", function()
|
||||
@@ -53,11 +53,11 @@ describe("ReaderLink module", function()
|
||||
local readerui = ReaderUI:new{
|
||||
document = DocumentRegistry:openDocument(sample_epub),
|
||||
}
|
||||
readerui.rolling:onGotoPage(4)
|
||||
readerui.link:onTap(nil, {pos = {x = 306, y = 710}})
|
||||
assert.is.same(37, readerui.rolling.current_page)
|
||||
readerui.rolling:onGotoPage(5)
|
||||
readerui.link:onTap(nil, {pos = {x = 326, y = 220}})
|
||||
assert.is.same(44, readerui.rolling.current_page)
|
||||
readerui.link:onGoBackLink()
|
||||
assert.is.same(4, readerui.rolling.current_page)
|
||||
assert.is.same(5, readerui.rolling.current_page)
|
||||
end)
|
||||
|
||||
it("should be able to go back after link jump in pdf page mode", function()
|
||||
|
||||
Reference in New Issue
Block a user