mirror of
https://github.com/koreader/koreader.git
synced 2025-12-13 20:36:53 +01:00
Landscape FM / Refactor rotation (#6309)
* landscape FM / Refactor rotation refactor and simplify the orientation handling code. the user generally cares about the rotation (what direction the device is facing) and not about if koreader is displaying in portrait or landscape mode * bump base update luasocket, libjpeg-turbo, curl add logging to evernote-sdk-lua update framebuffer for proper rotation
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
describe("Readerui module", function()
|
||||
local DocumentRegistry, ReaderUI, DocSettings, UIManager
|
||||
local DocumentRegistry, ReaderUI, DocSettings, UIManager, Screen
|
||||
local sample_epub = "spec/front/unit/data/leaves.epub"
|
||||
local readerui
|
||||
setup(function()
|
||||
@@ -8,8 +8,10 @@ describe("Readerui module", function()
|
||||
ReaderUI = require("apps/reader/readerui")
|
||||
DocSettings = require("docsettings")
|
||||
UIManager = require("ui/uimanager")
|
||||
Screen = require("device").screen
|
||||
|
||||
readerui = ReaderUI:new{
|
||||
dimen = Screen:getSize(),
|
||||
document = DocumentRegistry:openDocument(sample_epub),
|
||||
}
|
||||
end)
|
||||
@@ -40,6 +42,7 @@ describe("Readerui module", function()
|
||||
local new_readerui = ReaderUI:_getRunningInstance()
|
||||
assert.is.truthy(new_readerui.document)
|
||||
ReaderUI:new{
|
||||
dimen = Screen:getSize(),
|
||||
document = DocumentRegistry:openDocument(sample_epub)
|
||||
}:onClose()
|
||||
assert.is.truthy(new_readerui.document)
|
||||
|
||||
Reference in New Issue
Block a user